home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / Quickdraw.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  82.9 KB  |  2,956 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Quickdraw.a
  3. ;
  4. ;    Contains:    Interface to Quickdraw Graphics
  5. ;
  6. ;    Version:    Technology:    Mac OS 8.1
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  18. __QUICKDRAW__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  24.     include 'MixedMode.a'
  25.     ENDIF
  26.     IF &TYPE('__QUICKDRAWTEXT__') = 'UNDEFINED' THEN
  27.     include 'QuickdrawText.a'
  28.     ENDIF
  29.  
  30.  
  31. invalColReq                        EQU        -1                    ;invalid color table request
  32.  
  33.                                                             ; transfer modes 
  34. srcCopy                            EQU        0                    ;the 16 transfer modes
  35. srcOr                            EQU        1
  36. srcXor                            EQU        2
  37. srcBic                            EQU        3
  38. notSrcCopy                        EQU        4
  39. notSrcOr                        EQU        5
  40. notSrcXor                        EQU        6
  41. notSrcBic                        EQU        7
  42. patCopy                            EQU        8
  43. patOr                            EQU        9
  44. patXor                            EQU        10
  45. patBic                            EQU        11
  46. notPatCopy                        EQU        12
  47. notPatOr                        EQU        13
  48. notPatXor                        EQU        14
  49. notPatBic                        EQU        15                    ; Special Text Transfer Mode 
  50. grayishTextOr                    EQU        49
  51. hilitetransfermode                EQU        50
  52. hilite                            EQU        50                    ; Arithmetic transfer modes 
  53. blend                            EQU        32
  54. addPin                            EQU        33
  55. addOver                            EQU        34
  56. subPin                            EQU        35
  57. addMax                            EQU        37
  58. adMax                            EQU        37
  59. subOver                            EQU        38
  60. adMin                            EQU        39
  61. ditherCopy                        EQU        64                    ; Transparent mode constant 
  62. transparent                        EQU        36
  63.  
  64. italicBit                        EQU        1
  65. ulineBit                        EQU        2
  66. outlineBit                        EQU        3
  67. shadowBit                        EQU        4
  68. condenseBit                        EQU        5
  69. extendBit                        EQU        6
  70.  
  71.                                                             ; QuickDraw color separation constants 
  72. normalBit                        EQU        0                    ;normal screen mapping
  73. inverseBit                        EQU        1                    ;inverse screen mapping
  74. redBit                            EQU        4                    ;RGB additive mapping
  75. greenBit                        EQU        3
  76. blueBit                            EQU        2
  77. cyanBit                            EQU        8                    ;CMYBk subtractive mapping
  78. magentaBit                        EQU        7
  79. yellowBit                        EQU        6
  80. blackBit                        EQU        5
  81.  
  82. blackColor                        EQU        33                    ;colors expressed in these mappings
  83. whiteColor                        EQU        30
  84. redColor                        EQU        205
  85. greenColor                        EQU        341
  86. blueColor                        EQU        409
  87. cyanColor                        EQU        273
  88. magentaColor                    EQU        137
  89. yellowColor                        EQU        69
  90.  
  91. picLParen                        EQU        0                    ;standard picture comments
  92. picRParen                        EQU        1
  93. clutType                        EQU        0                    ;0 if lookup table
  94. fixedType                        EQU        1                    ;1 if fixed table
  95. directType                        EQU        2                    ;2 if direct values
  96. gdDevType                        EQU        0                    ;0 = monochrome 1 = color
  97.  
  98. interlacedDevice                EQU        2                    ; 1 if single pixel lines look bad 
  99. roundedDevice                    EQU        5                    ; 1 if device has been “rounded” into the GrayRgn 
  100. hasAuxMenuBar                    EQU        6                    ; 1 if device has an aux menu bar on it 
  101. burstDevice                        EQU        7
  102. ext32Device                        EQU        8
  103. ramInit                            EQU        10                    ;1 if initialized from 'scrn' resource
  104. mainScreen                        EQU        11                    ; 1 if main screen 
  105. allInit                            EQU        12                    ; 1 if all devices initialized 
  106. screenDevice                    EQU        13                    ;1 if screen device [not used]
  107. noDriver                        EQU        14                    ; 1 if no driver for this GDevice 
  108. screenActive                    EQU        15                    ;1 if in use
  109. hiliteBit                        EQU        7                    ;flag bit in HiliteMode (lowMem flag)
  110. pHiliteBit                        EQU        0                    ;flag bit in HiliteMode used with BitClr procedure
  111. defQDColors                        EQU        127                    ;resource ID of clut for default QDColors
  112.                                                             ; pixel type 
  113. RGBDirect                        EQU        16                    ; 16 & 32 bits/pixel pixelType value 
  114.                                                             ; pmVersion values 
  115. baseAddr32                        EQU        4                    ;pixmap base address is 32-bit address
  116.  
  117.  
  118. sysPatListID                    EQU        0
  119. iBeamCursor                        EQU        1
  120. crossCursor                        EQU        2
  121. plusCursor                        EQU        3
  122. watchCursor                        EQU        4
  123.  
  124. kQDGrafVerbFrame                EQU        0
  125. kQDGrafVerbPaint                EQU        1
  126. kQDGrafVerbErase                EQU        2
  127. kQDGrafVerbInvert                EQU        3
  128. kQDGrafVerbFill                    EQU        4
  129.     IF OLDROUTINENAMES THEN
  130.  
  131. frame                            EQU        0
  132. paint                            EQU        1
  133. erase                            EQU        2
  134. invert                            EQU        3
  135. fill                            EQU        4
  136.     ENDIF    ; OLDROUTINENAMES
  137. ; typedef SInt8                         GrafVerb
  138.  
  139.  
  140. chunky                            EQU        0
  141. chunkyPlanar                    EQU        1
  142. planar                            EQU        2
  143. ; typedef SInt8                         PixelType
  144.  
  145. Bits16                    RECORD 0
  146. elements                 ds.w    16
  147. sizeof                     EQU *                    ; size:   $20 (32)
  148.                         ENDR
  149.  
  150.  
  151.  
  152. ; ***************   IMPORTANT NOTE REGARDING Pattern  **************************************
  153. ;   Patterns were originally defined as:
  154. ;   
  155. ;        C:             typedef unsigned char Pattern[8];
  156. ;        Pascal:        Pattern = PACKED ARRAY [0..7] OF 0..255;
  157. ;        
  158. ;   The old array definition of Pattern would cause 68000 based CPU's to crash in certain circum-
  159. ;   stances. The new struct definition is safe, but may require source code changes to compile.
  160. ;    
  161. ;********************************************************************************************
  162.  
  163. Pattern                    RECORD 0
  164. pat                         ds.b    8                ; offset: $0 (0)
  165. sizeof                     EQU *                    ; size:   $8 (8)
  166.                         ENDR
  167. ; ConstPatternParam is no longer needed.  It was first created when Pattern was an array.
  168. ; Now that Pattern is a struct, it is more straight forward to just add the "const" qualifier
  169. ; on the parameter type (e.g. "const Pattern * pat" instead of "ConstPatternParam pat").
  170. ;
  171.  
  172. ; typedef struct Pattern *                PatPtr
  173.  
  174. ; typedef PatPtr *                        PatHandle
  175.  
  176. ; typedef short                         QDErr
  177.  
  178.  
  179. singleDevicesBit                EQU        0
  180. dontMatchSeedsBit                EQU        1
  181. allDevicesBit                    EQU        2
  182.  
  183. singleDevices                    EQU        $01
  184. dontMatchSeeds                    EQU        $02
  185. allDevices                        EQU        $04
  186. ; typedef unsigned long                 DeviceLoopFlags
  187.  
  188. ;    PrinterStatusOpcode.  For communication with downloading and printing services.
  189. ;
  190.  
  191. ; typedef SInt32                         PrinterStatusOpcode
  192.  
  193.  
  194. kPrinterFontStatus                EQU        0
  195. kPrinterScalingStatus            EQU        1
  196. PrinterFontStatus        RECORD 0
  197. oResult                     ds.l    1                ; offset: $0 (0)
  198. iFondID                     ds.w    1                ; offset: $4 (4)
  199. iStyle                     ds.b    1                ; offset: $6 (6)
  200.                          ORG 8
  201. sizeof                     EQU *                    ; size:   $8 (8)
  202.                         ENDR
  203. PrinterScalingStatus    RECORD 0
  204. oScalingFactors             ds        Point            ; offset: $0 (0)
  205. sizeof                     EQU *                    ; size:   $4 (4)
  206.                         ENDR
  207. BitMap                    RECORD 0
  208. baseAddr                 ds.l    1                ; offset: $0 (0)
  209. rowBytes                 ds.w    1                ; offset: $4 (4)
  210. bounds                     ds        Rect            ; offset: $6 (6)
  211. sizeof                     EQU *                    ; size:   $E (14)
  212.                         ENDR
  213. ; typedef struct BitMap *                BitMapPtr
  214.  
  215. ; typedef BitMapPtr *                    BitMapHandle
  216.  
  217. Cursor                    RECORD 0
  218. data                     ds        Bits16            ; offset: $0 (0)
  219. mask                     ds        Bits16            ; offset: $20 (32)
  220. hotSpot                     ds        Point            ; offset: $40 (64)
  221. sizeof                     EQU *                    ; size:   $44 (68)
  222.                         ENDR
  223. ; typedef struct Cursor *                CursPtr
  224.  
  225. ; typedef CursPtr *                        CursHandle
  226.  
  227. PenState                RECORD 0
  228. pnLoc                     ds        Point            ; offset: $0 (0)
  229. pnSize                     ds        Point            ; offset: $4 (4)
  230. pnMode                     ds.w    1                ; offset: $8 (8)
  231. pnPat                     ds        Pattern            ; offset: $A (10)
  232. sizeof                     EQU *                    ; size:   $12 (18)
  233.                         ENDR
  234. MacRegion                RECORD 0
  235. rgnSize                     ds.w    1                ; offset: $0 (0)        ; size in bytes
  236. rgnBBox                     ds        Rect            ; offset: $2 (2)        ; enclosing rectangle
  237. sizeof                     EQU *                    ; size:   $A (10)
  238.                         ENDR
  239. Region                    RECORD 0
  240. rgnSize                     ds.w    1                ; offset: $0 (0)        ; size in bytes
  241. rgnBBox                     ds        Rect            ; offset: $2 (2)        ; enclosing rectangle
  242. sizeof                     EQU *                    ; size:   $A (10)
  243.                         ENDR
  244. ; typedef struct MacRegion *            RgnPtr
  245.  
  246. ; typedef RgnPtr *                        RgnHandle
  247.  
  248. Picture                    RECORD 0
  249. picSize                     ds.w    1                ; offset: $0 (0)
  250. picFrame                 ds        Rect            ; offset: $2 (2)
  251. sizeof                     EQU *                    ; size:   $A (10)
  252.                         ENDR
  253. ; typedef struct Picture *                PicPtr
  254.  
  255. ; typedef PicPtr *                        PicHandle
  256.  
  257. MacPolygon                RECORD 0
  258. polySize                 ds.w    1                ; offset: $0 (0)
  259. polyBBox                 ds        Rect            ; offset: $2 (2)
  260. polyPoints                 ds        Point            ; offset: $A (10) <-- really an array of length one
  261. sizeof                     EQU *                    ; size:   $E (14)
  262.                         ENDR
  263. Polygon                    RECORD 0
  264. polySize                 ds.w    1                ; offset: $0 (0)
  265. polyBBox                 ds        Rect            ; offset: $2 (2)
  266. polyPoints                 ds        Point            ; offset: $A (10) <-- really an array of length one
  267. sizeof                     EQU *                    ; size:   $E (14)
  268.                         ENDR
  269. ; typedef struct MacPolygon *            PolyPtr
  270.  
  271. ; typedef PolyPtr *                        PolyHandle
  272.  
  273. QDProcs                    RECORD 0
  274. textProc                 ds.l    1                ; offset: $0 (0)
  275. lineProc                 ds.l    1                ; offset: $4 (4)
  276. rectProc                 ds.l    1                ; offset: $8 (8)
  277. rRectProc                 ds.l    1                ; offset: $C (12)
  278. ovalProc                 ds.l    1                ; offset: $10 (16)
  279. arcProc                     ds.l    1                ; offset: $14 (20)
  280. polyProc                 ds.l    1                ; offset: $18 (24)
  281. rgnProc                     ds.l    1                ; offset: $1C (28)
  282. bitsProc                 ds.l    1                ; offset: $20 (32)
  283. commentProc                 ds.l    1                ; offset: $24 (36)
  284. txMeasProc                 ds.l    1                ; offset: $28 (40)
  285. getPicProc                 ds.l    1                ; offset: $2C (44)
  286. putPicProc                 ds.l    1                ; offset: $30 (48)
  287. sizeof                     EQU *                    ; size:   $34 (52)
  288.                         ENDR
  289. ; typedef struct QDProcs *                QDProcsPtr
  290.  
  291. GrafPort                RECORD 0
  292. device                     ds.w    1                ; offset: $0 (0)
  293. portBits                 ds        BitMap            ; offset: $2 (2)
  294. portRect                 ds        Rect            ; offset: $10 (16)
  295. visRgn                     ds.l    1                ; offset: $18 (24)
  296. clipRgn                     ds.l    1                ; offset: $1C (28)
  297. bkPat                     ds        Pattern            ; offset: $20 (32)
  298. fillPat                     ds        Pattern            ; offset: $28 (40)
  299. pnLoc                     ds        Point            ; offset: $30 (48)
  300. pnSize                     ds        Point            ; offset: $34 (52)
  301. pnMode                     ds.w    1                ; offset: $38 (56)
  302. pnPat                     ds        Pattern            ; offset: $3A (58)
  303. pnVis                     ds.w    1                ; offset: $42 (66)
  304. txFont                     ds.w    1                ; offset: $44 (68)
  305. txFace                     ds.w    1                ; offset: $46 (70)        ; StyleField occupies 16-bits, but only first 8-bits are used
  306. txMode                     ds.w    1                ; offset: $48 (72)
  307. txSize                     ds.w    1                ; offset: $4A (74)
  308. spExtra                     ds.l    1                ; offset: $4C (76)
  309. fgColor                     ds.l    1                ; offset: $50 (80)
  310. bkColor                     ds.l    1                ; offset: $54 (84)
  311. colrBit                     ds.w    1                ; offset: $58 (88)
  312. patStretch                 ds.w    1                ; offset: $5A (90)
  313. picSave                     ds.l    1                ; offset: $5C (92)
  314. rgnSave                     ds.l    1                ; offset: $60 (96)
  315. polySave                 ds.l    1                ; offset: $64 (100)
  316. grafProcs                 ds.l    1                ; offset: $68 (104)
  317. sizeof                     EQU *                    ; size:   $6C (108)
  318.                         ENDR
  319. ; typedef struct GrafPort *                GrafPtr
  320.  
  321.  
  322. ; *    This set of definitions "belongs" in Windows.
  323. ; *    But, there is a circularity in the headers where Windows includes Controls and
  324. ; *    Controls includes Windows. To break the circle, the information
  325. ; *    needed by Controls is moved from Windows to Quickdraw.
  326.  
  327. ; typedef GrafPtr                         WindowPtr
  328.  
  329. ; typedef WindowPtr                     DialogPtr
  330.  
  331. ; typedef WindowPtr                     WindowRef
  332.  
  333. ;  DragConstraint constants to pass to DragGray,DragTheRgn, or ConstrainedDragRgn
  334. ; typedef UInt16                         DragConstraint
  335.  
  336.  
  337. kNoConstraint                    EQU        0
  338. kVerticalConstraint                EQU        1
  339. kHorizontalConstraint            EQU        2
  340.  
  341. ; *    Here ends the list of things that "belong" in Windows.
  342.  
  343.  
  344.  
  345. RGBColor                RECORD 0
  346. red                         ds.w    1                ; offset: $0 (0)        ; magnitude of red component
  347. green                     ds.w    1                ; offset: $2 (2)        ; magnitude of green component
  348. blue                     ds.w    1                ; offset: $4 (4)        ; magnitude of blue component
  349. sizeof                     EQU *                    ; size:   $6 (6)
  350.                         ENDR
  351. ; typedef struct RGBColor *                RGBColorPtr
  352.  
  353. ; typedef RGBColorPtr *                    RGBColorHdl
  354.  
  355. ColorSpec                RECORD 0
  356. value                     ds.w    1                ; offset: $0 (0)        ; index or other value
  357. rgb                         ds        RGBColor        ; offset: $2 (2)        ; true color
  358. sizeof                     EQU *                    ; size:   $8 (8)
  359.                         ENDR
  360. ; typedef struct ColorSpec *            ColorSpecPtr
  361.  
  362. CSpecArray                RECORD 0
  363. elements                 ds.b    1 * ColorSpec.sizeof
  364. sizeof                     EQU *                    ; size:   $8 (8)
  365.                         ENDR
  366.  
  367.  
  368. ColorTable                RECORD 0
  369. ctSeed                     ds.l    1                ; offset: $0 (0)        ; unique identifier for table
  370. ctFlags                     ds.w    1                ; offset: $4 (4)        ; high bit: 0 = PixMap; 1 = device
  371. ctSize                     ds.w    1                ; offset: $6 (6)        ; number of entries in CTTable
  372. ctTable                     ds        CSpecArray        ; offset: $8 (8)        ; array [0..0] of ColorSpec
  373. sizeof                     EQU *                    ; size:   $10 (16)
  374.                         ENDR
  375. ; typedef struct ColorTable *            CTabPtr
  376.  
  377. ; typedef CTabPtr *                        CTabHandle
  378.  
  379. xColorSpec                RECORD 0
  380. value                     ds.w    1                ; offset: $0 (0)        ; index or other value
  381. rgb                         ds        RGBColor        ; offset: $2 (2)        ; true color
  382. xalpha                     ds.w    1                ; offset: $8 (8)
  383. sizeof                     EQU *                    ; size:   $A (10)
  384.                         ENDR
  385. ; typedef struct xColorSpec *            xColorSpecPtr
  386.  
  387. xCSpecArray                RECORD 0
  388. elements                 ds.b    1 * xColorSpec.sizeof
  389. sizeof                     EQU *                    ; size:   $A (10)
  390.                         ENDR
  391.  
  392.  
  393. MatchRec                RECORD 0
  394. red                         ds.w    1                ; offset: $0 (0)
  395. green                     ds.w    1                ; offset: $2 (2)
  396. blue                     ds.w    1                ; offset: $4 (4)
  397. matchData                 ds.l    1                ; offset: $6 (6)
  398. sizeof                     EQU *                    ; size:   $A (10)
  399.                         ENDR
  400. ;    QuickTime 3.0 makes PixMap data structure available on non-Mac OS's.
  401. ;    In order to implement PixMap in these alternate environments, the PixMap
  402. ;    had to be extended. The pmReserved field was changed to pmExt which is
  403. ;    a Handle to extra info.  The planeBytes field was changed to pixelFormat.
  404. ;
  405.  
  406.     IF &TYPE('OLDPIXMAPSTRUCT') = 'UNDEFINED' THEN
  407.     IF TARGET_OS_MAC THEN
  408.     OLDPIXMAPSTRUCT: SET 1
  409.     ELSE
  410.     OLDPIXMAPSTRUCT: SET 0
  411.     ENDIF    ; TARGET_OS_MAC
  412.     ENDIF
  413. ;  pixel formats
  414.  
  415. k1MonochromePixelFormat            EQU        $00000001            ; 1 bit indexed
  416. k2IndexedPixelFormat            EQU        $00000002            ; 2 bit indexed
  417. k4IndexedPixelFormat            EQU        $00000004            ; 4 bit indexed
  418. k8IndexedPixelFormat            EQU        $00000008            ; 8 bit indexed
  419. k16BE555PixelFormat                EQU        $00000010            ; 16 bit BE rgb 555 (Mac)
  420. k24RGBPixelFormat                EQU        $00000018            ; 24 bit rgb 
  421. k32ARGBPixelFormat                EQU        $00000020            ; 32 bit argb    (Mac)
  422. k1IndexedGrayPixelFormat        EQU        $00000021            ; 1 bit indexed gray
  423. k2IndexedGrayPixelFormat        EQU        $00000022            ; 2 bit indexed gray
  424. k4IndexedGrayPixelFormat        EQU        $00000024            ; 4 bit indexed gray
  425. k8IndexedGrayPixelFormat        EQU        $00000028            ; 8 bit indexed gray
  426.  
  427. ;  values for PixMap.pixelFormat
  428.  
  429. k16LE555PixelFormat                EQU        'L555'                ; 16 bit LE rgb 555 (PC)
  430. k16BE565PixelFormat                EQU        'B565'                ; 16 bit BE rgb 565
  431. k16LE565PixelFormat                EQU        'L565'                ; 16 bit LE rgb 565
  432. k24BGRPixelFormat                EQU        '24BG'                ; 24 bit bgr 
  433. k32BGRAPixelFormat                EQU        'BGRA'                ; 32 bit bgra    (Matrox)
  434. k32ABGRPixelFormat                EQU        'ABGR'                ; 32 bit abgr    
  435. k32RGBAPixelFormat                EQU        'RGBA'                ; 32 bit rgba    
  436. kYUVSPixelFormat                EQU        'yuvs'                ; YUV 4:2:2 byte ordering 16-unsigned = 'YUY2'
  437. kYUVUPixelFormat                EQU        'yuvu'                ; YUV 4:2:2 byte ordering 16-signed
  438. kYVU9PixelFormat                EQU        'YVU9'                ; YVU9 Planar    9
  439. kYUV411PixelFormat                EQU        'Y411'                ; YUV 4:1:1 Interleaved    16
  440. kYVYU422PixelFormat                EQU        'YVYU'                ; YVYU 4:2:2 byte ordering    16
  441. kUYVY422PixelFormat                EQU        'UYVY'                ; UYVY 4:2:2 byte ordering    16
  442. kYUV211PixelFormat                EQU        'Y211'                ; YUV 2:1:1 Packed    8
  443.  
  444.     IF ¬ OLDPIXMAPSTRUCT THEN
  445. PixMapExtension            RECORD 0
  446. extSize                     ds.l    1                ; offset: $0 (0)        ; size of struct, duh!
  447. pmBits                     ds.l    1                ; offset: $4 (4)        ; pixmap attributes bitfield
  448. pmGD                     ds.l    1                ; offset: $8 (8)        ; this is a GDHandle
  449. pmSeed                     ds.l    1                ; offset: $C (12)
  450. reserved0                 ds.l    1                ; offset: $10 (16)        ; reserved for future use
  451. reserved1                 ds.l    1                ; offset: $14 (20)
  452. reserved2                 ds.l    1                ; offset: $18 (24)
  453. longRowBytes             ds.l    1                ; offset: $1C (28)        ; used when rowBytes > 16382
  454. sizeof                     EQU *                    ; size:   $20 (32)
  455.                         ENDR
  456. ; typedef struct PixMapExtension *        PixMapExtPtr
  457.  
  458. ; typedef PixMapExtPtr *                PixMapExtHandle
  459.  
  460.     ENDIF
  461. PixMap                    RECORD 0
  462. baseAddr                 ds.l    1                ; offset: $0 (0)        ; pointer to pixels
  463. rowBytes                 ds.w    1                ; offset: $4 (4)        ; offset to next line
  464. bounds                     ds        Rect            ; offset: $6 (6)        ; encloses bitmap
  465. pmVersion                 ds.w    1                ; offset: $E (14)        ; pixMap version number
  466. packType                 ds.w    1                ; offset: $10 (16)        ; defines packing format
  467. packSize                 ds.l    1                ; offset: $12 (18)        ; length of pixel data
  468. hRes                     ds.l    1                ; offset: $16 (22)        ; horiz. resolution (ppi)
  469. vRes                     ds.l    1                ; offset: $1A (26)        ; vert. resolution (ppi)
  470. pixelType                 ds.w    1                ; offset: $1E (30)        ; defines pixel type
  471. pixelSize                 ds.w    1                ; offset: $20 (32)        ; # bits in pixel
  472. cmpCount                 ds.w    1                ; offset: $22 (34)        ; # components in pixel
  473. cmpSize                     ds.w    1                ; offset: $24 (36)        ; # bits per component
  474. planeBytes                 ds.l    1                ; offset: $26 (38)        ; offset to next plane
  475. pmTable                     ds.l    1                ; offset: $2A (42)        ; color map for this pixMap
  476. pmReserved                 ds.l    1                ; offset: $2E (46)
  477. sizeof                     EQU *                    ; size:   $32 (50)
  478.                         ENDR
  479. ; typedef struct PixMap *                PixMapPtr
  480.  
  481. ; typedef PixMapPtr *                    PixMapHandle
  482.  
  483. PixPat                    RECORD 0
  484. patType                     ds.w    1                ; offset: $0 (0)        ; type of pattern
  485. patMap                     ds.l    1                ; offset: $2 (2)        ; the pattern's pixMap
  486. patData                     ds.l    1                ; offset: $6 (6)        ; pixmap's data
  487. patXData                 ds.l    1                ; offset: $A (10)        ; expanded Pattern data
  488. patXValid                 ds.w    1                ; offset: $E (14)        ; flags whether expanded Pattern valid
  489. patXMap                     ds.l    1                ; offset: $10 (16)        ; Handle to expanded Pattern data
  490. pat1Data                 ds        Pattern            ; offset: $14 (20)        ; old-Style pattern/RGB color
  491. sizeof                     EQU *                    ; size:   $1C (28)
  492.                         ENDR
  493. ; typedef struct PixPat *                PixPatPtr
  494.  
  495. ; typedef PixPatPtr *                    PixPatHandle
  496.  
  497. CCrsr                    RECORD 0
  498. crsrType                 ds.w    1                ; offset: $0 (0)        ; type of cursor
  499. crsrMap                     ds.l    1                ; offset: $2 (2)        ; the cursor's pixmap
  500. crsrData                 ds.l    1                ; offset: $6 (6)        ; cursor's data
  501. crsrXData                 ds.l    1                ; offset: $A (10)        ; expanded cursor data
  502. crsrXValid                 ds.w    1                ; offset: $E (14)        ; depth of expanded data (0 if none)
  503. crsrXHandle                 ds.l    1                ; offset: $10 (16)        ; future use
  504. crsr1Data                 ds        Bits16            ; offset: $14 (20)        ; one-bit cursor
  505. crsrMask                 ds        Bits16            ; offset: $34 (52)        ; cursor's mask
  506. crsrHotSpot                 ds        Point            ; offset: $54 (84)        ; cursor's hotspot
  507. crsrXTable                 ds.l    1                ; offset: $58 (88)        ; private
  508. crsrID                     ds.l    1                ; offset: $5C (92)        ; private
  509. sizeof                     EQU *                    ; size:   $60 (96)
  510.                         ENDR
  511. ; typedef struct CCrsr *                CCrsrPtr
  512.  
  513. ; typedef CCrsrPtr *                    CCrsrHandle
  514.  
  515.     IF OLDROUTINELOCATIONS THEN
  516. CIcon                    RECORD 0
  517. iconPMap                 ds        PixMap            ; offset: $0 (0)        ; the icon's pixMap
  518. iconMask                 ds        BitMap            ; offset: $32 (50)        ; the icon's mask
  519. iconBMap                 ds        BitMap            ; offset: $40 (64)        ; the icon's bitMap
  520. iconData                 ds.l    1                ; offset: $4E (78)        ; the icon's data
  521. iconMaskData             ds.w    1                ; offset: $52 (82) <-- really an array of length one ; icon's mask and BitMap data
  522. sizeof                     EQU *                    ; size:   $54 (84)
  523.                         ENDR
  524. ; typedef struct CIcon *                CIconPtr
  525.  
  526. ; typedef CIconPtr *                    CIconHandle
  527.  
  528.     ENDIF    ; OLDROUTINELOCATIONS
  529. GammaTbl                RECORD 0
  530. gVersion                 ds.w    1                ; offset: $0 (0)        ; gamma version number
  531. gType                     ds.w    1                ; offset: $2 (2)        ; gamma data type
  532. gFormulaSize             ds.w    1                ; offset: $4 (4)        ; Formula data size
  533. gChanCnt                 ds.w    1                ; offset: $6 (6)        ; number of channels of data
  534. gDataCnt                 ds.w    1                ; offset: $8 (8)        ; number of values/channel
  535. gDataWidth                 ds.w    1                ; offset: $A (10)        ; bits/corrected value (data packed to next larger byte size)
  536. gFormulaData             ds.w    1                ; offset: $C (12) <-- really an array of length one ; data for formulas followed by gamma values
  537. sizeof                     EQU *                    ; size:   $E (14)
  538.                         ENDR
  539. ; typedef struct GammaTbl *                GammaTblPtr
  540.  
  541. ; typedef GammaTblPtr *                    GammaTblHandle
  542.  
  543. ITab                    RECORD 0
  544. iTabSeed                 ds.l    1                ; offset: $0 (0)        ; copy of CTSeed from source CTable
  545. iTabRes                     ds.w    1                ; offset: $4 (4)        ; bits/channel resolution of iTable
  546. iTTable                     ds.b    1                ; offset: $6 (6) <-- really an array of length one ; byte colortable index values
  547.                          ORG 8
  548. sizeof                     EQU *                    ; size:   $8 (8)
  549.                         ENDR
  550. ; typedef struct ITab *                    ITabPtr
  551.  
  552. ; typedef ITabPtr *                        ITabHandle
  553.  
  554. SProcRec                RECORD 0
  555. nxtSrch                     ds.l    1                ; offset: $0 (0)        ; SProcHndl Handle to next SProcRec
  556. srchProc                 ds.l    1                ; offset: $4 (4)        ; search procedure proc ptr
  557. sizeof                     EQU *                    ; size:   $8 (8)
  558.                         ENDR
  559. ; typedef struct SProcRec *                SProcPtr
  560.  
  561. ; typedef SProcPtr *                    SProcHndl
  562.  
  563. CProcRec                RECORD 0
  564. nxtComp                     ds.l    1                ; offset: $0 (0)        ; CProcHndl Handle to next CProcRec
  565. compProc                 ds.l    1                ; offset: $4 (4)        ; complement procedure proc ptr
  566. sizeof                     EQU *                    ; size:   $8 (8)
  567.                         ENDR
  568. ; typedef struct CProcRec *                CProcPtr
  569.  
  570. ; typedef CProcPtr *                    CProcHndl
  571.  
  572. ;    QuickTime 3.0 makes GDevice data structure available on non-Mac OS's.
  573. ;    In order to implement GDevice in these alternate environments, the GDevice
  574. ;    had to be extended. The gdReserved field was changed to gdExt which is
  575. ;    a Handle to extra info.  
  576. ;
  577.  
  578.     IF &TYPE('OLDGDEVICESTRUCT') = 'UNDEFINED' THEN
  579.     IF TARGET_OS_MAC THEN
  580.     OLDGDEVICESTRUCT: SET 1
  581.     ELSE
  582.     OLDGDEVICESTRUCT: SET 0
  583.     ENDIF    ; TARGET_OS_MAC
  584.     ENDIF
  585.  
  586.  
  587. ; typedef GDevice *                        GDPtr
  588.  
  589. ; typedef GDPtr *                        GDHandle
  590.  
  591. GDevice                    RECORD 0
  592. gdRefNum                 ds.w    1                ; offset: $0 (0)        ; driver's unit number
  593. gdID                     ds.w    1                ; offset: $2 (2)        ; client ID for search procs
  594. gdType                     ds.w    1                ; offset: $4 (4)        ; fixed/CLUT/direct
  595. gdITable                 ds.l    1                ; offset: $6 (6)        ; Handle to inverse lookup table
  596. gdResPref                 ds.w    1                ; offset: $A (10)        ; preferred resolution of GDITable
  597. gdSearchProc             ds.l    1                ; offset: $C (12)        ; search proc list head
  598. gdCompProc                 ds.l    1                ; offset: $10 (16)        ; complement proc list
  599. gdFlags                     ds.w    1                ; offset: $14 (20)        ; grafDevice flags word
  600. gdPMap                     ds.l    1                ; offset: $16 (22)        ; describing pixMap
  601. gdRefCon                 ds.l    1                ; offset: $1A (26)        ; reference value
  602. gdNextGD                 ds.l    1                ; offset: $1E (30)        ; GDHandle Handle of next gDevice
  603. gdRect                     ds        Rect            ; offset: $22 (34)        ;  device's bounds in global coordinates
  604. gdMode                     ds.l    1                ; offset: $2A (42)        ; device's current mode
  605. gdCCBytes                 ds.w    1                ; offset: $2E (46)        ; depth of expanded cursor data
  606. gdCCDepth                 ds.w    1                ; offset: $30 (48)        ; depth of expanded cursor data
  607. gdCCXData                 ds.l    1                ; offset: $32 (50)        ; Handle to cursor's expanded data
  608. gdCCXMask                 ds.l    1                ; offset: $36 (54)        ; Handle to cursor's expanded mask
  609. gdReserved                 ds.l    1                ; offset: $3A (58)        ; future use. MUST BE 0
  610. sizeof                     EQU *                    ; size:   $3E (62)
  611.                         ENDR
  612. GrafVars                RECORD 0
  613. rgbOpColor                 ds        RGBColor        ; offset: $0 (0)        ; color for addPin  subPin and average
  614. rgbHiliteColor             ds        RGBColor        ; offset: $6 (6)        ; color for hiliting
  615. pmFgColor                 ds.l    1                ; offset: $C (12)        ; palette Handle for foreground color
  616. pmFgIndex                 ds.w    1                ; offset: $10 (16)        ; index value for foreground
  617. pmBkColor                 ds.l    1                ; offset: $12 (18)        ; palette Handle for background color
  618. pmBkIndex                 ds.w    1                ; offset: $16 (22)        ; index value for background
  619. pmFlags                     ds.w    1                ; offset: $18 (24)        ; flags for Palette Manager
  620. sizeof                     EQU *                    ; size:   $1A (26)
  621.                         ENDR
  622. ; typedef struct GrafVars *                GVarPtr
  623.  
  624. ; typedef GVarPtr *                        GVarHandle
  625.  
  626.  
  627.  
  628.  
  629. ; typedef CGrafPort *                    CGrafPtr
  630.  
  631.  
  632. CQDProcs                RECORD 0
  633. textProc                 ds.l    1                ; offset: $0 (0)
  634. lineProc                 ds.l    1                ; offset: $4 (4)
  635. rectProc                 ds.l    1                ; offset: $8 (8)
  636. rRectProc                 ds.l    1                ; offset: $C (12)
  637. ovalProc                 ds.l    1                ; offset: $10 (16)
  638. arcProc                     ds.l    1                ; offset: $14 (20)
  639. polyProc                 ds.l    1                ; offset: $18 (24)
  640. rgnProc                     ds.l    1                ; offset: $1C (28)
  641. bitsProc                 ds.l    1                ; offset: $20 (32)
  642. commentProc                 ds.l    1                ; offset: $24 (36)
  643. txMeasProc                 ds.l    1                ; offset: $28 (40)
  644. getPicProc                 ds.l    1                ; offset: $2C (44)
  645. putPicProc                 ds.l    1                ; offset: $30 (48)
  646. opcodeProc                 ds.l    1                ; offset: $34 (52)
  647. newProc1                 ds.l    1                ; offset: $38 (56)        ;  this is the StdPix bottleneck -- see ImageCompression.h 
  648. glyphsProc                 ds.l    1                ; offset: $3C (60)        ;  was newProc2; now used in Unicode text drawing 
  649. printerStatusProc         ds.l    1                ; offset: $40 (64)        ;  was newProc3;  now used to communicate status between Printing code and System imaging code 
  650. newProc4                 ds.l    1                ; offset: $44 (68)
  651. newProc5                 ds.l    1                ; offset: $48 (72)
  652. newProc6                 ds.l    1                ; offset: $4C (76)
  653. sizeof                     EQU *                    ; size:   $50 (80)
  654.                         ENDR
  655. ; typedef struct CQDProcs *                CQDProcsPtr
  656.  
  657. CGrafPort                RECORD 0
  658. device                     ds.w    1                ; offset: $0 (0)
  659. portPixMap                 ds.l    1                ; offset: $2 (2)        ; port's pixel map
  660. portVersion                 ds.w    1                ; offset: $6 (6)        ; high 2 bits always set
  661. grafVars                 ds.l    1                ; offset: $8 (8)        ; Handle to more fields
  662. chExtra                     ds.w    1                ; offset: $C (12)        ; character extra
  663. pnLocHFrac                 ds.w    1                ; offset: $E (14)        ; pen fraction
  664. portRect                 ds        Rect            ; offset: $10 (16)
  665. visRgn                     ds.l    1                ; offset: $18 (24)
  666. clipRgn                     ds.l    1                ; offset: $1C (28)
  667. bkPixPat                 ds.l    1                ; offset: $20 (32)        ; background pattern
  668. rgbFgColor                 ds        RGBColor        ; offset: $24 (36)        ; RGB components of fg
  669. rgbBkColor                 ds        RGBColor        ; offset: $2A (42)        ; RGB components of bk
  670. pnLoc                     ds        Point            ; offset: $30 (48)
  671. pnSize                     ds        Point            ; offset: $34 (52)
  672. pnMode                     ds.w    1                ; offset: $38 (56)
  673. pnPixPat                 ds.l    1                ; offset: $3A (58)        ; pen's pattern
  674. fillPixPat                 ds.l    1                ; offset: $3E (62)        ; fill pattern
  675. pnVis                     ds.w    1                ; offset: $42 (66)
  676. txFont                     ds.w    1                ; offset: $44 (68)
  677. txFace                     ds.w    1                ; offset: $46 (70)        ; StyleField occupies 16-bits, but only first 8-bits are used
  678. txMode                     ds.w    1                ; offset: $48 (72)
  679. txSize                     ds.w    1                ; offset: $4A (74)
  680. spExtra                     ds.l    1                ; offset: $4C (76)
  681. fgColor                     ds.l    1                ; offset: $50 (80)
  682. bkColor                     ds.l    1                ; offset: $54 (84)
  683. colrBit                     ds.w    1                ; offset: $58 (88)
  684. patStretch                 ds.w    1                ; offset: $5A (90)
  685. picSave                     ds.l    1                ; offset: $5C (92)
  686. rgnSave                     ds.l    1                ; offset: $60 (96)
  687. polySave                 ds.l    1                ; offset: $64 (100)
  688. grafProcs                 ds.l    1                ; offset: $68 (104)
  689. sizeof                     EQU *                    ; size:   $6C (108)
  690.                         ENDR
  691. ; typedef CGrafPtr                         CWindowPtr
  692.  
  693. ReqListRec                RECORD 0
  694. reqLSize                 ds.w    1                ; offset: $0 (0)        ; request list size
  695. reqLData                 ds.w    1                ; offset: $2 (2) <-- really an array of length one ; request list data
  696. sizeof                     EQU *                    ; size:   $4 (4)
  697.                         ENDR
  698. OpenCPicParams            RECORD 0
  699. srcRect                     ds        Rect            ; offset: $0 (0)
  700. hRes                     ds.l    1                ; offset: $8 (8)
  701. vRes                     ds.l    1                ; offset: $C (12)
  702. version                     ds.w    1                ; offset: $10 (16)
  703. reserved1                 ds.w    1                ; offset: $12 (18)
  704. reserved2                 ds.l    1                ; offset: $14 (20)
  705. sizeof                     EQU *                    ; size:   $18 (24)
  706.                         ENDR
  707.  
  708. kCursorImageMajorVersion        EQU        $0001
  709. kCursorImageMinorVersion        EQU        $0000
  710. CursorImageRec            RECORD 0
  711. majorVersion             ds.w    1                ; offset: $0 (0)
  712. minorVersion             ds.w    1                ; offset: $2 (2)
  713. cursorPixMap             ds.l    1                ; offset: $4 (4)
  714. cursorBitMask             ds.l    1                ; offset: $8 (8)
  715. sizeof                     EQU *                    ; size:   $C (12)
  716.                         ENDR
  717. ; typedef struct CursorImageRec *        CursorImagePtr
  718.  
  719. QDGlobals                RECORD 0
  720. privates                 ds.b    76                ; offset: $0 (0)
  721. randSeed                 ds.l    1                ; offset: $4C (76)
  722. screenBits                 ds        BitMap            ; offset: $50 (80)
  723. arrow                     ds        Cursor            ; offset: $5E (94)
  724. dkGray                     ds        Pattern            ; offset: $A2 (162)
  725. ltGray                     ds        Pattern            ; offset: $AA (170)
  726. gray                     ds        Pattern            ; offset: $B2 (178)
  727. black                     ds        Pattern            ; offset: $BA (186)
  728. white                     ds        Pattern            ; offset: $C2 (194)
  729. thePort                     ds.l    1                ; offset: $CA (202)
  730. sizeof                     EQU *                    ; size:   $CE (206)
  731.                         ENDR
  732. ; typedef struct QDGlobals *            QDGlobalsPtr
  733.  
  734. ; typedef QDGlobalsPtr *                QDGlobalsHdl
  735.  
  736.  
  737. ;    Often code written in assembly language is compiled outside of an
  738. ;    application environment.  In such cases, the Quickdraw globals
  739. ;    cannot be access normally (e.g. qd.black).  This kind of code (e.g.
  740. ;    INIT's) usually leaches off the currently install Quickdraw globals
  741. ;    by knowing that 0(a5) points to qd.thePort, as set by InitGraf().
  742. ;    
  743. ;    The record CurrentQDGlobals is defined for use in such circumstances.
  744. ;    It is biased so that thePort is at offset 0.  Below is an example
  745. ;    of using CurrentQDGlobals vs. the old assembly style:
  746. ;    
  747. ;    ; Get address of Quickdraw global's black into A0
  748. ;    
  749. ;        Old non-app way:
  750. ;                MOVE.L    0(A5),A0
  751. ;                LEA        black(A0),A0    ; black was EQU'ed to -16 in QuickEqu.a 
  752. ;    
  753. ;        New non-app way:
  754. ;                MOVE.L    0(A5),A0
  755. ;                LEA        CurrentQDGlobals.black(A0),A0
  756. ;    
  757. ;        New app way:
  758. ;                LEA        qd.black,A0        ; elsewhere: qd  DS    QDGlobals
  759.  
  760. CurrentQDGlobals         RECORD    {thePort},INCREMENT
  761. privates                 ds.b   76        ; offset: $FF36 (-202)
  762. randSeed                 ds.l   1        ; offset: $FF82 (-126)
  763. screenBits                 ds     BitMap    ; offset: $FF86 (-122)
  764. arrow                     ds     Cursor    ; offset: $FF94 (-108)
  765. dkGray                     ds     Pattern    ; offset: $FFD8 (-40)
  766. ltGray                     ds     Pattern    ; offset: $FFE0 (-32)
  767. gray                     ds     Pattern    ; offset: $FFE8 (-24)
  768. black                     ds     Pattern    ; offset: $FFF0 (-16)
  769. white                     ds     Pattern    ; offset: $FFF8 (-8)
  770. thePort                  ds.l   1        ; offset: $0000 (0)
  771. sizeof                     EQU    *-CurrentQDGlobals        ; size:   $CE   (206)
  772.                         ENDR
  773.  
  774.  
  775. GrafGlobals       EQU         0                         ; A5 offset to globptr
  776.  
  777.  
  778.  
  779. ;
  780. ; pascal void InitGraf(void *globalPtr)
  781. ;
  782.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  783.         _InitGraf:    OPWORD    $A86E
  784.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  785.         IMPORT_CFM_FUNCTION InitGraf
  786.     ENDIF
  787.  
  788. ;
  789. ; pascal void OpenPort(GrafPtr port)
  790. ;
  791.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  792.         _OpenPort:    OPWORD    $A86F
  793.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  794.         IMPORT_CFM_FUNCTION OpenPort
  795.     ENDIF
  796.  
  797. ;
  798. ; pascal void InitPort(GrafPtr port)
  799. ;
  800.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  801.         _InitPort:    OPWORD    $A86D
  802.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  803.         IMPORT_CFM_FUNCTION InitPort
  804.     ENDIF
  805.  
  806. ;
  807. ; pascal void ClosePort(GrafPtr port)
  808. ;
  809.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  810.         _ClosePort:    OPWORD    $A87D
  811.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  812.         IMPORT_CFM_FUNCTION ClosePort
  813.     ENDIF
  814.  
  815.     IF ¬ TARGET_OS_MAC THEN
  816. ;
  817. ; pascal OSErr LockPortBits(GrafPtr port)
  818. ;
  819.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  820.         IMPORT_CFM_FUNCTION LockPortBits
  821.     ENDIF
  822.  
  823. ;
  824. ; pascal OSErr UnlockPortBits(GrafPtr port)
  825. ;
  826.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  827.         IMPORT_CFM_FUNCTION UnlockPortBits
  828.     ENDIF
  829.  
  830. ;
  831. ; pascal OSErr UpdatePort(GrafPtr port)
  832. ;
  833.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  834.         IMPORT_CFM_FUNCTION UpdatePort
  835.     ENDIF
  836.  
  837. ;
  838. ; pascal void *GetPortNativeWindow(GrafPtr macPort)
  839. ;
  840.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  841.         IMPORT_CFM_FUNCTION GetPortNativeWindow
  842.     ENDIF
  843.  
  844. ;
  845. ; pascal GrafPtr GetNativeWindowPort(void *nativeWindow)
  846. ;
  847.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  848.         IMPORT_CFM_FUNCTION GetNativeWindowPort
  849.     ENDIF
  850.  
  851. ;
  852. ; pascal void *MacRegionToNativeRegion(RgnHandle macRegion)
  853. ;
  854.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  855.         IMPORT_CFM_FUNCTION MacRegionToNativeRegion
  856.     ENDIF
  857.  
  858. ;
  859. ; pascal RgnHandle NativeRegionToMacRegion(void *nativeRegion)
  860. ;
  861.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  862.         IMPORT_CFM_FUNCTION NativeRegionToMacRegion
  863.     ENDIF
  864.  
  865.     IF TARGET_OS_WIN32 THEN
  866. ;
  867. ; pascal void *GetPortHWND(GrafPtr port)
  868. ;
  869.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  870.         IMPORT_CFM_FUNCTION GetPortHWND
  871.     ENDIF
  872.  
  873. ;
  874. ; pascal GrafPtr GetHWNDPort(void *theHWND)
  875. ;
  876.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  877.         IMPORT_CFM_FUNCTION GetHWNDPort
  878.     ENDIF
  879.  
  880. ;
  881. ; pascal void *GetPortHDC(GrafPtr port)
  882. ;
  883.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  884.         IMPORT_CFM_FUNCTION GetPortHDC
  885.     ENDIF
  886.  
  887. ;
  888. ; pascal void *GetPortHBITMAP(GrafPtr port)
  889. ;
  890.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  891.         IMPORT_CFM_FUNCTION GetPortHBITMAP
  892.     ENDIF
  893.  
  894. ;
  895. ; pascal void *GetPortHPALETTE(GrafPtr port)
  896. ;
  897.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  898.         IMPORT_CFM_FUNCTION GetPortHPALETTE
  899.     ENDIF
  900.  
  901. ;
  902. ; pascal void *GetPortHFONT(GrafPtr port)
  903. ;
  904.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  905.         IMPORT_CFM_FUNCTION GetPortHFONT
  906.     ENDIF
  907.  
  908. ;
  909. ; pascal void *GetDIBFromPICT(PicHandle hPict)
  910. ;
  911.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  912.         IMPORT_CFM_FUNCTION GetDIBFromPICT
  913.     ENDIF
  914.  
  915. ;
  916. ; pascal PicHandle GetPICTFromDIB(void *h)
  917. ;
  918.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  919.         IMPORT_CFM_FUNCTION GetPICTFromDIB
  920.     ENDIF
  921.  
  922.     ENDIF    ; TARGET_OS_WIN32
  923.     ENDIF
  924.  
  925. ;
  926. ; pascal void SetPort(GrafPtr port)
  927. ;
  928.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  929.         _SetPort:    OPWORD    $A873
  930.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  931.         IMPORT_CFM_FUNCTION SetPort
  932.     ENDIF
  933.  
  934. ;
  935. ; pascal void GetPort(GrafPtr *port)
  936. ;
  937.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  938.         _GetPort:    OPWORD    $A874
  939.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  940.         IMPORT_CFM_FUNCTION GetPort
  941.     ENDIF
  942.  
  943. ;
  944. ; pascal void GrafDevice(short device)
  945. ;
  946.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  947.         _GrafDevice:    OPWORD    $A872
  948.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  949.         IMPORT_CFM_FUNCTION GrafDevice
  950.     ENDIF
  951.  
  952. ;
  953. ; pascal void SetPortBits(const BitMap *bm)
  954. ;
  955.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  956.         _SetPortBits:    OPWORD    $A875
  957.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  958.         IMPORT_CFM_FUNCTION SetPortBits
  959.     ENDIF
  960.  
  961. ;
  962. ; pascal void PortSize(short width, short height)
  963. ;
  964.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  965.         _PortSize:    OPWORD    $A876
  966.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  967.         IMPORT_CFM_FUNCTION PortSize
  968.     ENDIF
  969.  
  970. ;
  971. ; pascal void MovePortTo(short leftGlobal, short topGlobal)
  972. ;
  973.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  974.         _MovePortTo:    OPWORD    $A877
  975.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  976.         IMPORT_CFM_FUNCTION MovePortTo
  977.     ENDIF
  978.  
  979. ;
  980. ; pascal void SetOrigin(short h, short v)
  981. ;
  982.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  983.         _SetOrigin:    OPWORD    $A878
  984.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  985.         IMPORT_CFM_FUNCTION SetOrigin
  986.     ENDIF
  987.  
  988. ;
  989. ; pascal void SetClip(RgnHandle rgn)
  990. ;
  991.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  992.         _SetClip:    OPWORD    $A879
  993.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  994.         IMPORT_CFM_FUNCTION SetClip
  995.     ENDIF
  996.  
  997. ;
  998. ; pascal void GetClip(RgnHandle rgn)
  999. ;
  1000.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1001.         _GetClip:    OPWORD    $A87A
  1002.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1003.         IMPORT_CFM_FUNCTION GetClip
  1004.     ENDIF
  1005.  
  1006. ;
  1007. ; pascal void ClipRect(const Rect *r)
  1008. ;
  1009.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1010.         _ClipRect:    OPWORD    $A87B
  1011.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1012.         IMPORT_CFM_FUNCTION ClipRect
  1013.     ENDIF
  1014.  
  1015. ;
  1016. ; pascal void BackPat(const Pattern *pat)
  1017. ;
  1018.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1019.         _BackPat:    OPWORD    $A87C
  1020.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1021.         IMPORT_CFM_FUNCTION BackPat
  1022.     ENDIF
  1023.  
  1024. ;
  1025. ; pascal void InitCursor(void )
  1026. ;
  1027.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1028.         _InitCursor:    OPWORD    $A850
  1029.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1030.         IMPORT_CFM_FUNCTION InitCursor
  1031.     ENDIF
  1032.  
  1033. ;
  1034. ; pascal void SetCursor(const Cursor *crsr)
  1035. ;
  1036.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1037.         _SetCursor:    OPWORD    $A851
  1038.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1039.         IMPORT_CFM_FUNCTION SetCursor
  1040.     ENDIF
  1041.  
  1042. ;
  1043. ; pascal void HideCursor(void )
  1044. ;
  1045.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1046.         _HideCursor:    OPWORD    $A852
  1047.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1048.         IMPORT_CFM_FUNCTION HideCursor
  1049.     ENDIF
  1050.  
  1051. ;
  1052. ; pascal void ShowCursor(void )
  1053. ;
  1054.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1055.         _ShowCursor:    OPWORD    $A853
  1056.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1057.         IMPORT_CFM_FUNCTION ShowCursor
  1058.     ENDIF
  1059.  
  1060. ;
  1061. ; pascal void ObscureCursor(void )
  1062. ;
  1063.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1064.         _ObscureCursor:    OPWORD    $A856
  1065.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1066.         IMPORT_CFM_FUNCTION ObscureCursor
  1067.     ENDIF
  1068.  
  1069. ;
  1070. ; pascal void HidePen(void )
  1071. ;
  1072.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1073.         _HidePen:    OPWORD    $A896
  1074.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1075.         IMPORT_CFM_FUNCTION HidePen
  1076.     ENDIF
  1077.  
  1078. ;
  1079. ; pascal void ShowPen(void )
  1080. ;
  1081.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1082.         _ShowPen:    OPWORD    $A897
  1083.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1084.         IMPORT_CFM_FUNCTION ShowPen
  1085.     ENDIF
  1086.  
  1087. ;
  1088. ; pascal void GetPen(Point *pt)
  1089. ;
  1090.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1091.         _GetPen:    OPWORD    $A89A
  1092.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1093.         IMPORT_CFM_FUNCTION GetPen
  1094.     ENDIF
  1095.  
  1096. ;
  1097. ; pascal void GetPenState(PenState *pnState)
  1098. ;
  1099.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1100.         _GetPenState:    OPWORD    $A898
  1101.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1102.         IMPORT_CFM_FUNCTION GetPenState
  1103.     ENDIF
  1104.  
  1105. ;
  1106. ; pascal void SetPenState(const PenState *pnState)
  1107. ;
  1108.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1109.         _SetPenState:    OPWORD    $A899
  1110.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1111.         IMPORT_CFM_FUNCTION SetPenState
  1112.     ENDIF
  1113.  
  1114. ;
  1115. ; pascal void PenSize(short width, short height)
  1116. ;
  1117.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1118.         _PenSize:    OPWORD    $A89B
  1119.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1120.         IMPORT_CFM_FUNCTION PenSize
  1121.     ENDIF
  1122.  
  1123. ;
  1124. ; pascal void PenMode(short mode)
  1125. ;
  1126.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1127.         _PenMode:    OPWORD    $A89C
  1128.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1129.         IMPORT_CFM_FUNCTION PenMode
  1130.     ENDIF
  1131.  
  1132. ;
  1133. ; pascal void PenPat(const Pattern *pat)
  1134. ;
  1135.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1136.         _PenPat:    OPWORD    $A89D
  1137.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1138.         IMPORT_CFM_FUNCTION PenPat
  1139.     ENDIF
  1140.  
  1141. ;
  1142. ; pascal void PenNormal(void )
  1143. ;
  1144.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1145.         _PenNormal:    OPWORD    $A89E
  1146.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1147.         IMPORT_CFM_FUNCTION PenNormal
  1148.     ENDIF
  1149.  
  1150. ;
  1151. ; pascal void MoveTo(short h, short v)
  1152. ;
  1153.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1154.         _MoveTo:    OPWORD    $A893
  1155.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1156.         IMPORT_CFM_FUNCTION MoveTo
  1157.     ENDIF
  1158.  
  1159. ;
  1160. ; pascal void Move(short dh, short dv)
  1161. ;
  1162.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1163.         _Move:    OPWORD    $A894
  1164.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1165.         IMPORT_CFM_FUNCTION Move
  1166.     ENDIF
  1167.  
  1168. ;
  1169. ; pascal void LineTo(short h, short v)
  1170. ;
  1171.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1172.         _LineTo:    OPWORD    $A891
  1173.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1174.         IMPORT_CFM_FUNCTION LineTo
  1175.     ENDIF
  1176.  
  1177. ;
  1178. ; pascal void Line(short dh, short dv)
  1179. ;
  1180.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1181.         _Line:    OPWORD    $A892
  1182.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1183.         IMPORT_CFM_FUNCTION Line
  1184.     ENDIF
  1185.  
  1186. ;
  1187. ; pascal void ForeColor(long color)
  1188. ;
  1189.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1190.         _ForeColor:    OPWORD    $A862
  1191.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1192.         IMPORT_CFM_FUNCTION ForeColor
  1193.     ENDIF
  1194.  
  1195. ;
  1196. ; pascal void BackColor(long color)
  1197. ;
  1198.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1199.         _BackColor:    OPWORD    $A863
  1200.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1201.         IMPORT_CFM_FUNCTION BackColor
  1202.     ENDIF
  1203.  
  1204. ;
  1205. ; pascal void ColorBit(short whichBit)
  1206. ;
  1207.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1208.         _ColorBit:    OPWORD    $A864
  1209.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1210.         IMPORT_CFM_FUNCTION ColorBit
  1211.     ENDIF
  1212.  
  1213. ;
  1214. ; pascal void SetRect(Rect *r, short left, short top, short right, short bottom)
  1215. ;
  1216.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1217.         _SetRect:    OPWORD    $A8A7
  1218.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1219.         IMPORT_CFM_FUNCTION SetRect
  1220.     ENDIF
  1221.  
  1222. ;
  1223. ; pascal void OffsetRect(Rect *r, short dh, short dv)
  1224. ;
  1225.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1226.         _OffsetRect:    OPWORD    $A8A8
  1227.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1228.         IMPORT_CFM_FUNCTION OffsetRect
  1229.     ENDIF
  1230.  
  1231. ;
  1232. ; pascal void InsetRect(Rect *r, short dh, short dv)
  1233. ;
  1234.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1235.         _InsetRect:    OPWORD    $A8A9
  1236.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1237.         IMPORT_CFM_FUNCTION InsetRect
  1238.     ENDIF
  1239.  
  1240. ;
  1241. ; pascal Boolean SectRect(const Rect *src1, const Rect *src2, Rect *dstRect)
  1242. ;
  1243.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1244.         _SectRect:    OPWORD    $A8AA
  1245.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1246.         IMPORT_CFM_FUNCTION SectRect
  1247.     ENDIF
  1248.  
  1249. ;
  1250. ; pascal void UnionRect(const Rect *src1, const Rect *src2, Rect *dstRect)
  1251. ;
  1252.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1253.         _UnionRect:    OPWORD    $A8AB
  1254.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1255.         IMPORT_CFM_FUNCTION UnionRect
  1256.     ENDIF
  1257.  
  1258. ;
  1259. ; pascal Boolean EqualRect(const Rect *rect1, const Rect *rect2)
  1260. ;
  1261.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1262.         _EqualRect:    OPWORD    $A8A6
  1263.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1264.         IMPORT_CFM_FUNCTION EqualRect
  1265.     ENDIF
  1266.  
  1267. ;
  1268. ; pascal Boolean EmptyRect(const Rect *r)
  1269. ;
  1270.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1271.         _EmptyRect:    OPWORD    $A8AE
  1272.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1273.         IMPORT_CFM_FUNCTION EmptyRect
  1274.     ENDIF
  1275.  
  1276. ;
  1277. ; pascal void FrameRect(const Rect *r)
  1278. ;
  1279.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1280.         _FrameRect:    OPWORD    $A8A1
  1281.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1282.         IMPORT_CFM_FUNCTION FrameRect
  1283.     ENDIF
  1284.  
  1285. ;
  1286. ; pascal void PaintRect(const Rect *r)
  1287. ;
  1288.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1289.         _PaintRect:    OPWORD    $A8A2
  1290.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1291.         IMPORT_CFM_FUNCTION PaintRect
  1292.     ENDIF
  1293.  
  1294. ;
  1295. ; pascal void EraseRect(const Rect *r)
  1296. ;
  1297.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1298.         _EraseRect:    OPWORD    $A8A3
  1299.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1300.         IMPORT_CFM_FUNCTION EraseRect
  1301.     ENDIF
  1302.  
  1303. ;
  1304. ; pascal void InvertRect(const Rect *r)
  1305. ;
  1306.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1307.         _InvertRect:    OPWORD    $A8A4
  1308.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1309.         IMPORT_CFM_FUNCTION InvertRect
  1310.     ENDIF
  1311.  
  1312. ;
  1313. ; pascal void FillRect(const Rect *r, const Pattern *pat)
  1314. ;
  1315.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1316.         _FillRect:    OPWORD    $A8A5
  1317.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1318.         IMPORT_CFM_FUNCTION FillRect
  1319.     ENDIF
  1320.  
  1321. ;
  1322. ; pascal void FrameOval(const Rect *r)
  1323. ;
  1324.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1325.         _FrameOval:    OPWORD    $A8B7
  1326.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1327.         IMPORT_CFM_FUNCTION FrameOval
  1328.     ENDIF
  1329.  
  1330. ;
  1331. ; pascal void PaintOval(const Rect *r)
  1332. ;
  1333.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1334.         _PaintOval:    OPWORD    $A8B8
  1335.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1336.         IMPORT_CFM_FUNCTION PaintOval
  1337.     ENDIF
  1338.  
  1339. ;
  1340. ; pascal void EraseOval(const Rect *r)
  1341. ;
  1342.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1343.         _EraseOval:    OPWORD    $A8B9
  1344.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1345.         IMPORT_CFM_FUNCTION EraseOval
  1346.     ENDIF
  1347.  
  1348. ;
  1349. ; pascal void InvertOval(const Rect *r)
  1350. ;
  1351.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1352.         _InvertOval:    OPWORD    $A8BA
  1353.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1354.         IMPORT_CFM_FUNCTION InvertOval
  1355.     ENDIF
  1356.  
  1357. ;
  1358. ; pascal void FillOval(const Rect *r, const Pattern *pat)
  1359. ;
  1360.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1361.         _FillOval:    OPWORD    $A8BB
  1362.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1363.         IMPORT_CFM_FUNCTION FillOval
  1364.     ENDIF
  1365.  
  1366. ;
  1367. ; pascal void FrameRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1368. ;
  1369.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1370.         _FrameRoundRect:    OPWORD    $A8B0
  1371.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1372.         IMPORT_CFM_FUNCTION FrameRoundRect
  1373.     ENDIF
  1374.  
  1375. ;
  1376. ; pascal void PaintRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1377. ;
  1378.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1379.         _PaintRoundRect:    OPWORD    $A8B1
  1380.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1381.         IMPORT_CFM_FUNCTION PaintRoundRect
  1382.     ENDIF
  1383.  
  1384. ;
  1385. ; pascal void EraseRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1386. ;
  1387.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1388.         _EraseRoundRect:    OPWORD    $A8B2
  1389.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1390.         IMPORT_CFM_FUNCTION EraseRoundRect
  1391.     ENDIF
  1392.  
  1393. ;
  1394. ; pascal void InvertRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1395. ;
  1396.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1397.         _InvertRoundRect:    OPWORD    $A8B3
  1398.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1399.         IMPORT_CFM_FUNCTION InvertRoundRect
  1400.     ENDIF
  1401.  
  1402. ;
  1403. ; pascal void FillRoundRect(const Rect *r, short ovalWidth, short ovalHeight, const Pattern *pat)
  1404. ;
  1405.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1406.         _FillRoundRect:    OPWORD    $A8B4
  1407.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1408.         IMPORT_CFM_FUNCTION FillRoundRect
  1409.     ENDIF
  1410.  
  1411. ;
  1412. ; pascal void FrameArc(const Rect *r, short startAngle, short arcAngle)
  1413. ;
  1414.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1415.         _FrameArc:    OPWORD    $A8BE
  1416.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1417.         IMPORT_CFM_FUNCTION FrameArc
  1418.     ENDIF
  1419.  
  1420. ;
  1421. ; pascal void PaintArc(const Rect *r, short startAngle, short arcAngle)
  1422. ;
  1423.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1424.         _PaintArc:    OPWORD    $A8BF
  1425.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1426.         IMPORT_CFM_FUNCTION PaintArc
  1427.     ENDIF
  1428.  
  1429. ;
  1430. ; pascal void EraseArc(const Rect *r, short startAngle, short arcAngle)
  1431. ;
  1432.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1433.         _EraseArc:    OPWORD    $A8C0
  1434.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1435.         IMPORT_CFM_FUNCTION EraseArc
  1436.     ENDIF
  1437.  
  1438. ;
  1439. ; pascal void InvertArc(const Rect *r, short startAngle, short arcAngle)
  1440. ;
  1441.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1442.         _InvertArc:    OPWORD    $A8C1
  1443.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1444.         IMPORT_CFM_FUNCTION InvertArc
  1445.     ENDIF
  1446.  
  1447. ;
  1448. ; pascal void FillArc(const Rect *r, short startAngle, short arcAngle, const Pattern *pat)
  1449. ;
  1450.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1451.         _FillArc:    OPWORD    $A8C2
  1452.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1453.         IMPORT_CFM_FUNCTION FillArc
  1454.     ENDIF
  1455.  
  1456. ;
  1457. ; pascal RgnHandle NewRgn(void )
  1458. ;
  1459.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1460.         _NewRgn:    OPWORD    $A8D8
  1461.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1462.         IMPORT_CFM_FUNCTION NewRgn
  1463.     ENDIF
  1464.  
  1465. ;
  1466. ; pascal void OpenRgn(void )
  1467. ;
  1468.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1469.         _OpenRgn:    OPWORD    $A8DA
  1470.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1471.         IMPORT_CFM_FUNCTION OpenRgn
  1472.     ENDIF
  1473.  
  1474. ;
  1475. ; pascal void CloseRgn(RgnHandle dstRgn)
  1476. ;
  1477.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1478.         _CloseRgn:    OPWORD    $A8DB
  1479.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1480.         IMPORT_CFM_FUNCTION CloseRgn
  1481.     ENDIF
  1482.  
  1483. ;
  1484. ; pascal OSErr BitMapToRegion(RgnHandle region, const BitMap *bMap)
  1485. ;
  1486.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1487.         _BitMapToRegion:    OPWORD    $A8D7
  1488.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1489.         IMPORT_CFM_FUNCTION BitMapToRegion
  1490.     ENDIF
  1491.  
  1492. ;
  1493. ; pascal void DisposeRgn(RgnHandle rgn)
  1494. ;
  1495.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1496.         _DisposeRgn:    OPWORD    $A8D9
  1497.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1498.         IMPORT_CFM_FUNCTION DisposeRgn
  1499.     ENDIF
  1500.  
  1501. ;
  1502. ; pascal void CopyRgn(RgnHandle srcRgn, RgnHandle dstRgn)
  1503. ;
  1504.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1505.         _CopyRgn:    OPWORD    $A8DC
  1506.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1507.         IMPORT_CFM_FUNCTION CopyRgn
  1508.     ENDIF
  1509.  
  1510. ;
  1511. ; pascal void SetEmptyRgn(RgnHandle rgn)
  1512. ;
  1513.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1514.         _SetEmptyRgn:    OPWORD    $A8DD
  1515.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1516.         IMPORT_CFM_FUNCTION SetEmptyRgn
  1517.     ENDIF
  1518.  
  1519. ;
  1520. ; pascal void SetRectRgn(RgnHandle rgn, short left, short top, short right, short bottom)
  1521. ;
  1522.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1523.         _SetRectRgn:    OPWORD    $A8DE
  1524.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1525.         IMPORT_CFM_FUNCTION SetRectRgn
  1526.     ENDIF
  1527.  
  1528. ;
  1529. ; pascal void RectRgn(RgnHandle rgn, const Rect *r)
  1530. ;
  1531.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1532.         _RectRgn:    OPWORD    $A8DF
  1533.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1534.         IMPORT_CFM_FUNCTION RectRgn
  1535.     ENDIF
  1536.  
  1537. ;
  1538. ; pascal void OffsetRgn(RgnHandle rgn, short dh, short dv)
  1539. ;
  1540.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1541.         _OffsetRgn:    OPWORD    $A8E0
  1542.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1543.         IMPORT_CFM_FUNCTION OffsetRgn
  1544.     ENDIF
  1545.  
  1546. ;
  1547. ; pascal void InsetRgn(RgnHandle rgn, short dh, short dv)
  1548. ;
  1549.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1550.         _InsetRgn:    OPWORD    $A8E1
  1551.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1552.         IMPORT_CFM_FUNCTION InsetRgn
  1553.     ENDIF
  1554.  
  1555. ;
  1556. ; pascal void SectRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1557. ;
  1558.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1559.         _SectRgn:    OPWORD    $A8E4
  1560.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1561.         IMPORT_CFM_FUNCTION SectRgn
  1562.     ENDIF
  1563.  
  1564. ;
  1565. ; pascal void UnionRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1566. ;
  1567.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1568.         _UnionRgn:    OPWORD    $A8E5
  1569.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1570.         IMPORT_CFM_FUNCTION UnionRgn
  1571.     ENDIF
  1572.  
  1573. ;
  1574. ; pascal void DiffRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1575. ;
  1576.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1577.         _DiffRgn:    OPWORD    $A8E6
  1578.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1579.         IMPORT_CFM_FUNCTION DiffRgn
  1580.     ENDIF
  1581.  
  1582. ;
  1583. ; pascal void XorRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1584. ;
  1585.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1586.         _XorRgn:    OPWORD    $A8E7
  1587.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1588.         IMPORT_CFM_FUNCTION XorRgn
  1589.     ENDIF
  1590.  
  1591. ;
  1592. ; pascal Boolean RectInRgn(const Rect *r, RgnHandle rgn)
  1593. ;
  1594.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1595.         _RectInRgn:    OPWORD    $A8E9
  1596.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1597.         IMPORT_CFM_FUNCTION RectInRgn
  1598.     ENDIF
  1599.  
  1600. ;
  1601. ; pascal Boolean EqualRgn(RgnHandle rgnA, RgnHandle rgnB)
  1602. ;
  1603.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1604.         _EqualRgn:    OPWORD    $A8E3
  1605.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1606.         IMPORT_CFM_FUNCTION EqualRgn
  1607.     ENDIF
  1608.  
  1609. ;
  1610. ; pascal Boolean EmptyRgn(RgnHandle rgn)
  1611. ;
  1612.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1613.         _EmptyRgn:    OPWORD    $A8E2
  1614.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1615.         IMPORT_CFM_FUNCTION EmptyRgn
  1616.     ENDIF
  1617.  
  1618. ;
  1619. ; pascal void FrameRgn(RgnHandle rgn)
  1620. ;
  1621.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1622.         _FrameRgn:    OPWORD    $A8D2
  1623.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1624.         IMPORT_CFM_FUNCTION FrameRgn
  1625.     ENDIF
  1626.  
  1627. ;
  1628. ; pascal void PaintRgn(RgnHandle rgn)
  1629. ;
  1630.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1631.         _PaintRgn:    OPWORD    $A8D3
  1632.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1633.         IMPORT_CFM_FUNCTION PaintRgn
  1634.     ENDIF
  1635.  
  1636. ;
  1637. ; pascal void EraseRgn(RgnHandle rgn)
  1638. ;
  1639.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1640.         _EraseRgn:    OPWORD    $A8D4
  1641.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1642.         IMPORT_CFM_FUNCTION EraseRgn
  1643.     ENDIF
  1644.  
  1645. ;
  1646. ; pascal void InvertRgn(RgnHandle rgn)
  1647. ;
  1648.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1649.         _InvertRgn:    OPWORD    $A8D5
  1650.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1651.         IMPORT_CFM_FUNCTION InvertRgn
  1652.     ENDIF
  1653.  
  1654. ;
  1655. ; pascal void FillRgn(RgnHandle rgn, const Pattern *pat)
  1656. ;
  1657.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1658.         _FillRgn:    OPWORD    $A8D6
  1659.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1660.         IMPORT_CFM_FUNCTION FillRgn
  1661.     ENDIF
  1662.  
  1663. ;
  1664. ; pascal void ScrollRect(const Rect *r, short dh, short dv, RgnHandle updateRgn)
  1665. ;
  1666.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1667.         _ScrollRect:    OPWORD    $A8EF
  1668.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1669.         IMPORT_CFM_FUNCTION ScrollRect
  1670.     ENDIF
  1671.  
  1672. ;
  1673. ; pascal void CopyBits(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  1674. ;
  1675.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1676.         _CopyBits:    OPWORD    $A8EC
  1677.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1678.         IMPORT_CFM_FUNCTION CopyBits
  1679.     ENDIF
  1680.  
  1681. ;
  1682. ; pascal void SeedFill(const void *srcPtr, void *dstPtr, short srcRow, short dstRow, short height, short words, short seedH, short seedV)
  1683. ;
  1684.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1685.         _SeedFill:    OPWORD    $A839
  1686.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1687.         IMPORT_CFM_FUNCTION SeedFill
  1688.     ENDIF
  1689.  
  1690. ;
  1691. ; pascal void CalcMask(const void *srcPtr, void *dstPtr, short srcRow, short dstRow, short height, short words)
  1692. ;
  1693.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1694.         _CalcMask:    OPWORD    $A838
  1695.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1696.         IMPORT_CFM_FUNCTION CalcMask
  1697.     ENDIF
  1698.  
  1699. ;
  1700. ; pascal void CopyMask(const BitMap *srcBits, const BitMap *maskBits, const BitMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect)
  1701. ;
  1702.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1703.         _CopyMask:    OPWORD    $A817
  1704.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1705.         IMPORT_CFM_FUNCTION CopyMask
  1706.     ENDIF
  1707.  
  1708. ;
  1709. ; pascal PicHandle OpenPicture(const Rect *picFrame)
  1710. ;
  1711.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1712.         _OpenPicture:    OPWORD    $A8F3
  1713.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1714.         IMPORT_CFM_FUNCTION OpenPicture
  1715.     ENDIF
  1716.  
  1717. ;
  1718. ; pascal void PicComment(short kind, short dataSize, Handle dataHandle)
  1719. ;
  1720.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1721.         _PicComment:    OPWORD    $A8F2
  1722.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1723.         IMPORT_CFM_FUNCTION PicComment
  1724.     ENDIF
  1725.  
  1726. ;
  1727. ; pascal void ClosePicture(void )
  1728. ;
  1729.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1730.         _ClosePicture:    OPWORD    $A8F4
  1731.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1732.         IMPORT_CFM_FUNCTION ClosePicture
  1733.     ENDIF
  1734.  
  1735. ;
  1736. ; pascal void DrawPicture(PicHandle myPicture, const Rect *dstRect)
  1737. ;
  1738.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1739.         _DrawPicture:    OPWORD    $A8F6
  1740.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1741.         IMPORT_CFM_FUNCTION DrawPicture
  1742.     ENDIF
  1743.  
  1744. ;
  1745. ; pascal void KillPicture(PicHandle myPicture)
  1746. ;
  1747.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1748.         _KillPicture:    OPWORD    $A8F5
  1749.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1750.         IMPORT_CFM_FUNCTION KillPicture
  1751.     ENDIF
  1752.  
  1753. ;
  1754. ; pascal PolyHandle OpenPoly(void )
  1755. ;
  1756.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1757.         _OpenPoly:    OPWORD    $A8CB
  1758.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1759.         IMPORT_CFM_FUNCTION OpenPoly
  1760.     ENDIF
  1761.  
  1762. ;
  1763. ; pascal void ClosePoly(void )
  1764. ;
  1765.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1766.         _ClosePoly:    OPWORD    $A8CC
  1767.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1768.         IMPORT_CFM_FUNCTION ClosePoly
  1769.     ENDIF
  1770.  
  1771. ;
  1772. ; pascal void KillPoly(PolyHandle poly)
  1773. ;
  1774.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1775.         _KillPoly:    OPWORD    $A8CD
  1776.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1777.         IMPORT_CFM_FUNCTION KillPoly
  1778.     ENDIF
  1779.  
  1780. ;
  1781. ; pascal void OffsetPoly(PolyHandle poly, short dh, short dv)
  1782. ;
  1783.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1784.         _OffsetPoly:    OPWORD    $A8CE
  1785.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1786.         IMPORT_CFM_FUNCTION OffsetPoly
  1787.     ENDIF
  1788.  
  1789. ;
  1790. ; pascal void FramePoly(PolyHandle poly)
  1791. ;
  1792.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1793.         _FramePoly:    OPWORD    $A8C6
  1794.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1795.         IMPORT_CFM_FUNCTION FramePoly
  1796.     ENDIF
  1797.  
  1798. ;
  1799. ; pascal void PaintPoly(PolyHandle poly)
  1800. ;
  1801.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1802.         _PaintPoly:    OPWORD    $A8C7
  1803.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1804.         IMPORT_CFM_FUNCTION PaintPoly
  1805.     ENDIF
  1806.  
  1807. ;
  1808. ; pascal void ErasePoly(PolyHandle poly)
  1809. ;
  1810.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1811.         _ErasePoly:    OPWORD    $A8C8
  1812.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1813.         IMPORT_CFM_FUNCTION ErasePoly
  1814.     ENDIF
  1815.  
  1816. ;
  1817. ; pascal void InvertPoly(PolyHandle poly)
  1818. ;
  1819.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1820.         _InvertPoly:    OPWORD    $A8C9
  1821.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1822.         IMPORT_CFM_FUNCTION InvertPoly
  1823.     ENDIF
  1824.  
  1825. ;
  1826. ; pascal void FillPoly(PolyHandle poly, const Pattern *pat)
  1827. ;
  1828.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1829.         _FillPoly:    OPWORD    $A8CA
  1830.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1831.         IMPORT_CFM_FUNCTION FillPoly
  1832.     ENDIF
  1833.  
  1834. ;
  1835. ; pascal void SetPt(Point *pt, short h, short v)
  1836. ;
  1837.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1838.         _SetPt:    OPWORD    $A880
  1839.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1840.         IMPORT_CFM_FUNCTION SetPt
  1841.     ENDIF
  1842.  
  1843. ;
  1844. ; pascal void LocalToGlobal(Point *pt)
  1845. ;
  1846.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1847.         _LocalToGlobal:    OPWORD    $A870
  1848.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1849.         IMPORT_CFM_FUNCTION LocalToGlobal
  1850.     ENDIF
  1851.  
  1852. ;
  1853. ; pascal void GlobalToLocal(Point *pt)
  1854. ;
  1855.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1856.         _GlobalToLocal:    OPWORD    $A871
  1857.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1858.         IMPORT_CFM_FUNCTION GlobalToLocal
  1859.     ENDIF
  1860.  
  1861. ;
  1862. ; pascal short Random(void )
  1863. ;
  1864.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1865.         _Random:    OPWORD    $A861
  1866.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1867.         IMPORT_CFM_FUNCTION Random
  1868.     ENDIF
  1869.  
  1870. ;
  1871. ; pascal void StuffHex(void *thingPtr, ConstStr255Param s)
  1872. ;
  1873.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1874.         _StuffHex:    OPWORD    $A866
  1875.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1876.         IMPORT_CFM_FUNCTION StuffHex
  1877.     ENDIF
  1878.  
  1879. ;
  1880. ; pascal Boolean GetPixel(short h, short v)
  1881. ;
  1882.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1883.         _GetPixel:    OPWORD    $A865
  1884.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1885.         IMPORT_CFM_FUNCTION GetPixel
  1886.     ENDIF
  1887.  
  1888. ;
  1889. ; pascal void ScalePt(Point *pt, const Rect *srcRect, const Rect *dstRect)
  1890. ;
  1891.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1892.         _ScalePt:    OPWORD    $A8F8
  1893.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1894.         IMPORT_CFM_FUNCTION ScalePt
  1895.     ENDIF
  1896.  
  1897. ;
  1898. ; pascal void MapPt(Point *pt, const Rect *srcRect, const Rect *dstRect)
  1899. ;
  1900.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1901.         _MapPt:    OPWORD    $A8F9
  1902.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1903.         IMPORT_CFM_FUNCTION MapPt
  1904.     ENDIF
  1905.  
  1906. ;
  1907. ; pascal void MapRect(Rect *r, const Rect *srcRect, const Rect *dstRect)
  1908. ;
  1909.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1910.         _MapRect:    OPWORD    $A8FA
  1911.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1912.         IMPORT_CFM_FUNCTION MapRect
  1913.     ENDIF
  1914.  
  1915. ;
  1916. ; pascal void MapRgn(RgnHandle rgn, const Rect *srcRect, const Rect *dstRect)
  1917. ;
  1918.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1919.         _MapRgn:    OPWORD    $A8FB
  1920.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1921.         IMPORT_CFM_FUNCTION MapRgn
  1922.     ENDIF
  1923.  
  1924. ;
  1925. ; pascal void MapPoly(PolyHandle poly, const Rect *srcRect, const Rect *dstRect)
  1926. ;
  1927.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1928.         _MapPoly:    OPWORD    $A8FC
  1929.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1930.         IMPORT_CFM_FUNCTION MapPoly
  1931.     ENDIF
  1932.  
  1933. ;
  1934. ; pascal void SetStdProcs(QDProcs *procs)
  1935. ;
  1936.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1937.         _SetStdProcs:    OPWORD    $A8EA
  1938.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1939.         IMPORT_CFM_FUNCTION SetStdProcs
  1940.     ENDIF
  1941.  
  1942. ;
  1943. ; pascal void StdRect(GrafVerb verb, const Rect *r)
  1944. ;
  1945.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1946.         _StdRect:    OPWORD    $A8A0
  1947.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1948.         IMPORT_CFM_FUNCTION StdRect
  1949.     ENDIF
  1950.  
  1951. ;
  1952. ; pascal void StdRRect(GrafVerb verb, const Rect *r, short ovalWidth, short ovalHeight)
  1953. ;
  1954.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1955.         _StdRRect:    OPWORD    $A8AF
  1956.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1957.         IMPORT_CFM_FUNCTION StdRRect
  1958.     ENDIF
  1959.  
  1960. ;
  1961. ; pascal void StdOval(GrafVerb verb, const Rect *r)
  1962. ;
  1963.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1964.         _StdOval:    OPWORD    $A8B6
  1965.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1966.         IMPORT_CFM_FUNCTION StdOval
  1967.     ENDIF
  1968.  
  1969. ;
  1970. ; pascal void StdArc(GrafVerb verb, const Rect *r, short startAngle, short arcAngle)
  1971. ;
  1972.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1973.         _StdArc:    OPWORD    $A8BD
  1974.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1975.         IMPORT_CFM_FUNCTION StdArc
  1976.     ENDIF
  1977.  
  1978. ;
  1979. ; pascal void StdPoly(GrafVerb verb, PolyHandle poly)
  1980. ;
  1981.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1982.         _StdPoly:    OPWORD    $A8C5
  1983.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1984.         IMPORT_CFM_FUNCTION StdPoly
  1985.     ENDIF
  1986.  
  1987. ;
  1988. ; pascal void StdRgn(GrafVerb verb, RgnHandle rgn)
  1989. ;
  1990.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1991.         _StdRgn:    OPWORD    $A8D1
  1992.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1993.         IMPORT_CFM_FUNCTION StdRgn
  1994.     ENDIF
  1995.  
  1996. ;
  1997. ; pascal void StdBits(const BitMap *srcBits, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  1998. ;
  1999.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2000.         _StdBits:    OPWORD    $A8EB
  2001.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2002.         IMPORT_CFM_FUNCTION StdBits
  2003.     ENDIF
  2004.  
  2005. ;
  2006. ; pascal void StdComment(short kind, short dataSize, Handle dataHandle)
  2007. ;
  2008.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2009.         _StdComment:    OPWORD    $A8F1
  2010.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2011.         IMPORT_CFM_FUNCTION StdComment
  2012.     ENDIF
  2013.  
  2014. ;
  2015. ; pascal void StdGetPic(void *dataPtr, short byteCount)
  2016. ;
  2017.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2018.         _StdGetPic:    OPWORD    $A8EE
  2019.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2020.         IMPORT_CFM_FUNCTION StdGetPic
  2021.     ENDIF
  2022.  
  2023. ;
  2024. ; pascal void StdPutPic(const void *dataPtr, short byteCount)
  2025. ;
  2026.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2027.         _StdPutPic:    OPWORD    $A8F0
  2028.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2029.         IMPORT_CFM_FUNCTION StdPutPic
  2030.     ENDIF
  2031.  
  2032. ;
  2033. ; pascal void StdOpcode(const Rect *fromRect, const Rect *toRect, UInt16 opcode, SInt16 version)
  2034. ;
  2035.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2036.         _StdOpcode:    OPWORD    $ABF8
  2037.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2038.         IMPORT_CFM_FUNCTION StdOpcode
  2039.     ENDIF
  2040.  
  2041. ;
  2042. ; pascal void AddPt(Point src, Point *dst)
  2043. ;
  2044.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2045.         _AddPt:    OPWORD    $A87E
  2046.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2047.         IMPORT_CFM_FUNCTION AddPt
  2048.     ENDIF
  2049.  
  2050. ;
  2051. ; pascal Boolean EqualPt(Point pt1, Point pt2)
  2052. ;
  2053.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2054.         _EqualPt:    OPWORD    $A881
  2055.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2056.         IMPORT_CFM_FUNCTION EqualPt
  2057.     ENDIF
  2058.  
  2059. ;
  2060. ; pascal Boolean PtInRect(Point pt, const Rect *r)
  2061. ;
  2062.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2063.         _PtInRect:    OPWORD    $A8AD
  2064.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2065.         IMPORT_CFM_FUNCTION PtInRect
  2066.     ENDIF
  2067.  
  2068. ;
  2069. ; pascal void Pt2Rect(Point pt1, Point pt2, Rect *dstRect)
  2070. ;
  2071.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2072.         _Pt2Rect:    OPWORD    $A8AC
  2073.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2074.         IMPORT_CFM_FUNCTION Pt2Rect
  2075.     ENDIF
  2076.  
  2077. ;
  2078. ; pascal void PtToAngle(const Rect *r, Point pt, short *angle)
  2079. ;
  2080.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2081.         _PtToAngle:    OPWORD    $A8C3
  2082.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2083.         IMPORT_CFM_FUNCTION PtToAngle
  2084.     ENDIF
  2085.  
  2086. ;
  2087. ; pascal void SubPt(Point src, Point *dst)
  2088. ;
  2089.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2090.         _SubPt:    OPWORD    $A87F
  2091.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2092.         IMPORT_CFM_FUNCTION SubPt
  2093.     ENDIF
  2094.  
  2095. ;
  2096. ; pascal Boolean PtInRgn(Point pt, RgnHandle rgn)
  2097. ;
  2098.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2099.         _PtInRgn:    OPWORD    $A8E8
  2100.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2101.         IMPORT_CFM_FUNCTION PtInRgn
  2102.     ENDIF
  2103.  
  2104. ;
  2105. ; pascal void StdLine(Point newPt)
  2106. ;
  2107.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2108.         _StdLine:    OPWORD    $A890
  2109.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2110.         IMPORT_CFM_FUNCTION StdLine
  2111.     ENDIF
  2112.  
  2113. ;
  2114. ; pascal void OpenCPort(CGrafPtr port)
  2115. ;
  2116.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2117.         _OpenCPort:    OPWORD    $AA00
  2118.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2119.         IMPORT_CFM_FUNCTION OpenCPort
  2120.     ENDIF
  2121.  
  2122. ;
  2123. ; pascal void InitCPort(CGrafPtr port)
  2124. ;
  2125.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2126.         _InitCPort:    OPWORD    $AA01
  2127.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2128.         IMPORT_CFM_FUNCTION InitCPort
  2129.     ENDIF
  2130.  
  2131. ;
  2132. ; pascal void CloseCPort(CGrafPtr port)
  2133. ;
  2134.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2135.         _CloseCPort:    OPWORD    $AA02
  2136.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2137.         IMPORT_CFM_FUNCTION CloseCPort
  2138.     ENDIF
  2139.  
  2140. ;
  2141. ; pascal PixMapHandle NewPixMap(void )
  2142. ;
  2143.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2144.         _NewPixMap:    OPWORD    $AA03
  2145.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2146.         IMPORT_CFM_FUNCTION NewPixMap
  2147.     ENDIF
  2148.  
  2149. ;
  2150. ; pascal void DisposePixMap(PixMapHandle pm)
  2151. ;
  2152.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2153.         _DisposePixMap:    OPWORD    $AA04
  2154.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2155.         IMPORT_CFM_FUNCTION DisposePixMap
  2156.     ENDIF
  2157.  
  2158. ;
  2159. ; pascal void CopyPixMap(PixMapHandle srcPM, PixMapHandle dstPM)
  2160. ;
  2161.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2162.         _CopyPixMap:    OPWORD    $AA05
  2163.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2164.         IMPORT_CFM_FUNCTION CopyPixMap
  2165.     ENDIF
  2166.  
  2167. ;
  2168. ; pascal PixPatHandle NewPixPat(void )
  2169. ;
  2170.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2171.         _NewPixPat:    OPWORD    $AA07
  2172.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2173.         IMPORT_CFM_FUNCTION NewPixPat
  2174.     ENDIF
  2175.  
  2176. ;
  2177. ; pascal void DisposePixPat(PixPatHandle pp)
  2178. ;
  2179.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2180.         _DisposePixPat:    OPWORD    $AA08
  2181.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2182.         IMPORT_CFM_FUNCTION DisposePixPat
  2183.     ENDIF
  2184.  
  2185. ;
  2186. ; pascal void CopyPixPat(PixPatHandle srcPP, PixPatHandle dstPP)
  2187. ;
  2188.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2189.         _CopyPixPat:    OPWORD    $AA09
  2190.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2191.         IMPORT_CFM_FUNCTION CopyPixPat
  2192.     ENDIF
  2193.  
  2194. ;
  2195. ; pascal void PenPixPat(PixPatHandle pp)
  2196. ;
  2197.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2198.         _PenPixPat:    OPWORD    $AA0A
  2199.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2200.         IMPORT_CFM_FUNCTION PenPixPat
  2201.     ENDIF
  2202.  
  2203. ;
  2204. ; pascal void BackPixPat(PixPatHandle pp)
  2205. ;
  2206.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2207.         _BackPixPat:    OPWORD    $AA0B
  2208.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2209.         IMPORT_CFM_FUNCTION BackPixPat
  2210.     ENDIF
  2211.  
  2212. ;
  2213. ; pascal PixPatHandle GetPixPat(short patID)
  2214. ;
  2215.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2216.         _GetPixPat:    OPWORD    $AA0C
  2217.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2218.         IMPORT_CFM_FUNCTION GetPixPat
  2219.     ENDIF
  2220.  
  2221. ;
  2222. ; pascal void MakeRGBPat(PixPatHandle pp, const RGBColor *myColor)
  2223. ;
  2224.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2225.         _MakeRGBPat:    OPWORD    $AA0D
  2226.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2227.         IMPORT_CFM_FUNCTION MakeRGBPat
  2228.     ENDIF
  2229.  
  2230. ;
  2231. ; pascal void FillCRect(const Rect *r, PixPatHandle pp)
  2232. ;
  2233.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2234.         _FillCRect:    OPWORD    $AA0E
  2235.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2236.         IMPORT_CFM_FUNCTION FillCRect
  2237.     ENDIF
  2238.  
  2239. ;
  2240. ; pascal void FillCOval(const Rect *r, PixPatHandle pp)
  2241. ;
  2242.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2243.         _FillCOval:    OPWORD    $AA0F
  2244.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2245.         IMPORT_CFM_FUNCTION FillCOval
  2246.     ENDIF
  2247.  
  2248. ;
  2249. ; pascal void FillCRoundRect(const Rect *r, short ovalWidth, short ovalHeight, PixPatHandle pp)
  2250. ;
  2251.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2252.         _FillCRoundRect:    OPWORD    $AA10
  2253.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2254.         IMPORT_CFM_FUNCTION FillCRoundRect
  2255.     ENDIF
  2256.  
  2257. ;
  2258. ; pascal void FillCArc(const Rect *r, short startAngle, short arcAngle, PixPatHandle pp)
  2259. ;
  2260.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2261.         _FillCArc:    OPWORD    $AA11
  2262.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2263.         IMPORT_CFM_FUNCTION FillCArc
  2264.     ENDIF
  2265.  
  2266. ;
  2267. ; pascal void FillCRgn(RgnHandle rgn, PixPatHandle pp)
  2268. ;
  2269.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2270.         _FillCRgn:    OPWORD    $AA12
  2271.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2272.         IMPORT_CFM_FUNCTION FillCRgn
  2273.     ENDIF
  2274.  
  2275. ;
  2276. ; pascal void FillCPoly(PolyHandle poly, PixPatHandle pp)
  2277. ;
  2278.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2279.         _FillCPoly:    OPWORD    $AA13
  2280.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2281.         IMPORT_CFM_FUNCTION FillCPoly
  2282.     ENDIF
  2283.  
  2284. ;
  2285. ; pascal void RGBForeColor(const RGBColor *color)
  2286. ;
  2287.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2288.         _RGBForeColor:    OPWORD    $AA14
  2289.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2290.         IMPORT_CFM_FUNCTION RGBForeColor
  2291.     ENDIF
  2292.  
  2293. ;
  2294. ; pascal void RGBBackColor(const RGBColor *color)
  2295. ;
  2296.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2297.         _RGBBackColor:    OPWORD    $AA15
  2298.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2299.         IMPORT_CFM_FUNCTION RGBBackColor
  2300.     ENDIF
  2301.  
  2302. ;
  2303. ; pascal void SetCPixel(short h, short v, const RGBColor *cPix)
  2304. ;
  2305.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2306.         _SetCPixel:    OPWORD    $AA16
  2307.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2308.         IMPORT_CFM_FUNCTION SetCPixel
  2309.     ENDIF
  2310.  
  2311. ;
  2312. ; pascal void SetPortPix(PixMapHandle pm)
  2313. ;
  2314.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2315.         _SetPortPix:    OPWORD    $AA06
  2316.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2317.         IMPORT_CFM_FUNCTION SetPortPix
  2318.     ENDIF
  2319.  
  2320. ;
  2321. ; pascal void GetCPixel(short h, short v, RGBColor *cPix)
  2322. ;
  2323.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2324.         _GetCPixel:    OPWORD    $AA17
  2325.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2326.         IMPORT_CFM_FUNCTION GetCPixel
  2327.     ENDIF
  2328.  
  2329. ;
  2330. ; pascal void GetForeColor(RGBColor *color)
  2331. ;
  2332.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2333.         _GetForeColor:    OPWORD    $AA19
  2334.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2335.         IMPORT_CFM_FUNCTION GetForeColor
  2336.     ENDIF
  2337.  
  2338. ;
  2339. ; pascal void GetBackColor(RGBColor *color)
  2340. ;
  2341.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2342.         _GetBackColor:    OPWORD    $AA1A
  2343.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2344.         IMPORT_CFM_FUNCTION GetBackColor
  2345.     ENDIF
  2346.  
  2347. ;
  2348. ; pascal void SeedCFill(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, short seedH, short seedV, ColorSearchUPP matchProc, long matchData)
  2349. ;
  2350.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2351.         _SeedCFill:    OPWORD    $AA50
  2352.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2353.         IMPORT_CFM_FUNCTION SeedCFill
  2354.     ENDIF
  2355.  
  2356. ;
  2357. ; pascal void CalcCMask(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, const RGBColor *seedRGB, ColorSearchUPP matchProc, long matchData)
  2358. ;
  2359.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2360.         _CalcCMask:    OPWORD    $AA4F
  2361.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2362.         IMPORT_CFM_FUNCTION CalcCMask
  2363.     ENDIF
  2364.  
  2365. ;
  2366. ; pascal PicHandle OpenCPicture(const OpenCPicParams *newHeader)
  2367. ;
  2368.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2369.         _OpenCPicture:    OPWORD    $AA20
  2370.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2371.         IMPORT_CFM_FUNCTION OpenCPicture
  2372.     ENDIF
  2373.  
  2374. ;
  2375. ; pascal void OpColor(const RGBColor *color)
  2376. ;
  2377.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2378.         _OpColor:    OPWORD    $AA21
  2379.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2380.         IMPORT_CFM_FUNCTION OpColor
  2381.     ENDIF
  2382.  
  2383. ;
  2384. ; pascal void HiliteColor(const RGBColor *color)
  2385. ;
  2386.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2387.         _HiliteColor:    OPWORD    $AA22
  2388.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2389.         IMPORT_CFM_FUNCTION HiliteColor
  2390.     ENDIF
  2391.  
  2392. ;
  2393. ; pascal void DisposeCTable(CTabHandle cTable)
  2394. ;
  2395.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2396.         _DisposeCTable:    OPWORD    $AA24
  2397.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2398.         IMPORT_CFM_FUNCTION DisposeCTable
  2399.     ENDIF
  2400.  
  2401. ;
  2402. ; pascal CTabHandle GetCTable(short ctID)
  2403. ;
  2404.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2405.         _GetCTable:    OPWORD    $AA18
  2406.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2407.         IMPORT_CFM_FUNCTION GetCTable
  2408.     ENDIF
  2409.  
  2410. ;
  2411. ; pascal CCrsrHandle GetCCursor(short crsrID)
  2412. ;
  2413.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2414.         _GetCCursor:    OPWORD    $AA1B
  2415.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2416.         IMPORT_CFM_FUNCTION GetCCursor
  2417.     ENDIF
  2418.  
  2419. ;
  2420. ; pascal void SetCCursor(CCrsrHandle cCrsr)
  2421. ;
  2422.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2423.         _SetCCursor:    OPWORD    $AA1C
  2424.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2425.         IMPORT_CFM_FUNCTION SetCCursor
  2426.     ENDIF
  2427.  
  2428. ;
  2429. ; pascal void AllocCursor(void )
  2430. ;
  2431.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2432.         _AllocCursor:    OPWORD    $AA1D
  2433.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2434.         IMPORT_CFM_FUNCTION AllocCursor
  2435.     ENDIF
  2436.  
  2437. ;
  2438. ; pascal void DisposeCCursor(CCrsrHandle cCrsr)
  2439. ;
  2440.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2441.         _DisposeCCursor:    OPWORD    $AA26
  2442.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2443.         IMPORT_CFM_FUNCTION DisposeCCursor
  2444.     ENDIF
  2445.  
  2446.     IF OLDROUTINELOCATIONS THEN
  2447. ;
  2448. ; pascal CIconHandle GetCIcon(short iconID)
  2449. ;
  2450.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2451.         _GetCIcon:    OPWORD    $AA1E
  2452.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2453.         IMPORT_CFM_FUNCTION GetCIcon
  2454.     ENDIF
  2455.  
  2456. ;
  2457. ; pascal void PlotCIcon(const Rect *theRect, CIconHandle theIcon)
  2458. ;
  2459.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2460.         _PlotCIcon:    OPWORD    $AA1F
  2461.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2462.         IMPORT_CFM_FUNCTION PlotCIcon
  2463.     ENDIF
  2464.  
  2465. ;
  2466. ; pascal void DisposeCIcon(CIconHandle theIcon)
  2467. ;
  2468.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2469.         _DisposeCIcon:    OPWORD    $AA25
  2470.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2471.         IMPORT_CFM_FUNCTION DisposeCIcon
  2472.     ENDIF
  2473.  
  2474.     ENDIF    ; OLDROUTINELOCATIONS
  2475. ;
  2476. ; pascal void SetStdCProcs(CQDProcs *procs)
  2477. ;
  2478.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2479.         _SetStdCProcs:    OPWORD    $AA4E
  2480.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2481.         IMPORT_CFM_FUNCTION SetStdCProcs
  2482.     ENDIF
  2483.  
  2484. ;
  2485. ; pascal GDHandle GetMaxDevice(const Rect *globalRect)
  2486. ;
  2487.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2488.         _GetMaxDevice:    OPWORD    $AA27
  2489.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2490.         IMPORT_CFM_FUNCTION GetMaxDevice
  2491.     ENDIF
  2492.  
  2493. ;
  2494. ; pascal long GetCTSeed(void )
  2495. ;
  2496.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2497.         _GetCTSeed:    OPWORD    $AA28
  2498.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2499.         IMPORT_CFM_FUNCTION GetCTSeed
  2500.     ENDIF
  2501.  
  2502. ;
  2503. ; pascal GDHandle GetDeviceList(void )
  2504. ;
  2505.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2506.         _GetDeviceList:    OPWORD    $AA29
  2507.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2508.         IMPORT_CFM_FUNCTION GetDeviceList
  2509.     ENDIF
  2510.  
  2511. ;
  2512. ; pascal GDHandle GetMainDevice(void )
  2513. ;
  2514.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2515.         _GetMainDevice:    OPWORD    $AA2A
  2516.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2517.         IMPORT_CFM_FUNCTION GetMainDevice
  2518.     ENDIF
  2519.  
  2520. ;
  2521. ; pascal GDHandle GetNextDevice(GDHandle curDevice)
  2522. ;
  2523.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2524.         _GetNextDevice:    OPWORD    $AA2B
  2525.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2526.         IMPORT_CFM_FUNCTION GetNextDevice
  2527.     ENDIF
  2528.  
  2529. ;
  2530. ; pascal Boolean TestDeviceAttribute(GDHandle gdh, short attribute)
  2531. ;
  2532.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2533.         _TestDeviceAttribute:    OPWORD    $AA2C
  2534.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2535.         IMPORT_CFM_FUNCTION TestDeviceAttribute
  2536.     ENDIF
  2537.  
  2538. ;
  2539. ; pascal void SetDeviceAttribute(GDHandle gdh, short attribute, Boolean value)
  2540. ;
  2541.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2542.         _SetDeviceAttribute:    OPWORD    $AA2D
  2543.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2544.         IMPORT_CFM_FUNCTION SetDeviceAttribute
  2545.     ENDIF
  2546.  
  2547. ;
  2548. ; pascal void InitGDevice(short qdRefNum, long mode, GDHandle gdh)
  2549. ;
  2550.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2551.         _InitGDevice:    OPWORD    $AA2E
  2552.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2553.         IMPORT_CFM_FUNCTION InitGDevice
  2554.     ENDIF
  2555.  
  2556. ;
  2557. ; pascal GDHandle NewGDevice(short refNum, long mode)
  2558. ;
  2559.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2560.         _NewGDevice:    OPWORD    $AA2F
  2561.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2562.         IMPORT_CFM_FUNCTION NewGDevice
  2563.     ENDIF
  2564.  
  2565. ;
  2566. ; pascal void DisposeGDevice(GDHandle gdh)
  2567. ;
  2568.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2569.         _DisposeGDevice:    OPWORD    $AA30
  2570.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2571.         IMPORT_CFM_FUNCTION DisposeGDevice
  2572.     ENDIF
  2573.  
  2574. ;
  2575. ; pascal void SetGDevice(GDHandle gd)
  2576. ;
  2577.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2578.         _SetGDevice:    OPWORD    $AA31
  2579.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2580.         IMPORT_CFM_FUNCTION SetGDevice
  2581.     ENDIF
  2582.  
  2583. ;
  2584. ; pascal GDHandle GetGDevice(void )
  2585. ;
  2586.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2587.         _GetGDevice:    OPWORD    $AA32
  2588.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2589.         IMPORT_CFM_FUNCTION GetGDevice
  2590.     ENDIF
  2591.  
  2592. ;
  2593. ; pascal long Color2Index(const RGBColor *myColor)
  2594. ;
  2595.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2596.         _Color2Index:    OPWORD    $AA33
  2597.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2598.         IMPORT_CFM_FUNCTION Color2Index
  2599.     ENDIF
  2600.  
  2601. ;
  2602. ; pascal void Index2Color(long index, RGBColor *aColor)
  2603. ;
  2604.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2605.         _Index2Color:    OPWORD    $AA34
  2606.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2607.         IMPORT_CFM_FUNCTION Index2Color
  2608.     ENDIF
  2609.  
  2610. ;
  2611. ; pascal void InvertColor(RGBColor *myColor)
  2612. ;
  2613.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2614.         _InvertColor:    OPWORD    $AA35
  2615.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2616.         IMPORT_CFM_FUNCTION InvertColor
  2617.     ENDIF
  2618.  
  2619. ;
  2620. ; pascal Boolean RealColor(const RGBColor *color)
  2621. ;
  2622.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2623.         _RealColor:    OPWORD    $AA36
  2624.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2625.         IMPORT_CFM_FUNCTION RealColor
  2626.     ENDIF
  2627.  
  2628. ;
  2629. ; pascal void GetSubTable(CTabHandle myColors, short iTabRes, CTabHandle targetTbl)
  2630. ;
  2631.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2632.         _GetSubTable:    OPWORD    $AA37
  2633.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2634.         IMPORT_CFM_FUNCTION GetSubTable
  2635.     ENDIF
  2636.  
  2637. ;
  2638. ; pascal void MakeITable(CTabHandle cTabH, ITabHandle iTabH, short res)
  2639. ;
  2640.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2641.         _MakeITable:    OPWORD    $AA39
  2642.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2643.         IMPORT_CFM_FUNCTION MakeITable
  2644.     ENDIF
  2645.  
  2646. ;
  2647. ; pascal void AddSearch(ColorSearchUPP searchProc)
  2648. ;
  2649.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2650.         _AddSearch:    OPWORD    $AA3A
  2651.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2652.         IMPORT_CFM_FUNCTION AddSearch
  2653.     ENDIF
  2654.  
  2655. ;
  2656. ; pascal void AddComp(ColorComplementUPP compProc)
  2657. ;
  2658.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2659.         _AddComp:    OPWORD    $AA3B
  2660.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2661.         IMPORT_CFM_FUNCTION AddComp
  2662.     ENDIF
  2663.  
  2664. ;
  2665. ; pascal void DelSearch(ColorSearchUPP searchProc)
  2666. ;
  2667.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2668.         _DelSearch:    OPWORD    $AA4C
  2669.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2670.         IMPORT_CFM_FUNCTION DelSearch
  2671.     ENDIF
  2672.  
  2673. ;
  2674. ; pascal void DelComp(ColorComplementUPP compProc)
  2675. ;
  2676.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2677.         _DelComp:    OPWORD    $AA4D
  2678.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2679.         IMPORT_CFM_FUNCTION DelComp
  2680.     ENDIF
  2681.  
  2682. ;
  2683. ; pascal void SetClientID(short id)
  2684. ;
  2685.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2686.         _SetClientID:    OPWORD    $AA3C
  2687.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2688.         IMPORT_CFM_FUNCTION SetClientID
  2689.     ENDIF
  2690.  
  2691. ;
  2692. ; pascal void ProtectEntry(short index, Boolean protect)
  2693. ;
  2694.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2695.         _ProtectEntry:    OPWORD    $AA3D
  2696.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2697.         IMPORT_CFM_FUNCTION ProtectEntry
  2698.     ENDIF
  2699.  
  2700. ;
  2701. ; pascal void ReserveEntry(short index, Boolean reserve)
  2702. ;
  2703.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2704.         _ReserveEntry:    OPWORD    $AA3E
  2705.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2706.         IMPORT_CFM_FUNCTION ReserveEntry
  2707.     ENDIF
  2708.  
  2709. ;
  2710. ; pascal void SetEntries(short start, short count, CSpecArray aTable)
  2711. ;
  2712.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2713.         _SetEntries:    OPWORD    $AA3F
  2714.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2715.         IMPORT_CFM_FUNCTION SetEntries
  2716.     ENDIF
  2717.  
  2718. ;
  2719. ; pascal void SaveEntries(CTabHandle srcTable, CTabHandle resultTable, ReqListRec *selection)
  2720. ;
  2721.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2722.         _SaveEntries:    OPWORD    $AA49
  2723.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2724.         IMPORT_CFM_FUNCTION SaveEntries
  2725.     ENDIF
  2726.  
  2727. ;
  2728. ; pascal void RestoreEntries(CTabHandle srcTable, CTabHandle dstTable, ReqListRec *selection)
  2729. ;
  2730.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2731.         _RestoreEntries:    OPWORD    $AA4A
  2732.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2733.         IMPORT_CFM_FUNCTION RestoreEntries
  2734.     ENDIF
  2735.  
  2736. ;
  2737. ; pascal short QDError(void )
  2738. ;
  2739.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2740.         _QDError:    OPWORD    $AA40
  2741.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2742.         IMPORT_CFM_FUNCTION QDError
  2743.     ENDIF
  2744.  
  2745. ;
  2746. ; pascal void CopyDeepMask(const BitMap *srcBits, const BitMap *maskBits, const BitMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  2747. ;
  2748.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2749.         _CopyDeepMask:    OPWORD    $AA51
  2750.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2751.         IMPORT_CFM_FUNCTION CopyDeepMask
  2752.     ENDIF
  2753.  
  2754. ;
  2755. ; pascal void DeviceLoop(RgnHandle drawingRgn, DeviceLoopDrawingUPP drawingProc, long userData, DeviceLoopFlags flags)
  2756. ;
  2757.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2758.         _DeviceLoop:    OPWORD    $ABCA
  2759.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2760.         IMPORT_CFM_FUNCTION DeviceLoop
  2761.     ENDIF
  2762.  
  2763.  
  2764. ;
  2765. ; pascal Ptr GetMaskTable(void )
  2766. ;
  2767.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2768.         ; returns:
  2769.         ;    Ptr             <= A0
  2770.         _GetMaskTable:    OPWORD    $A836
  2771.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2772.         IMPORT_CFM_FUNCTION GetMaskTable
  2773.     ENDIF
  2774.  
  2775. ;
  2776. ; pascal PatHandle GetPattern(short patternID)
  2777. ;
  2778.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2779.         _GetPattern:    OPWORD    $A9B8
  2780.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2781.         IMPORT_CFM_FUNCTION GetPattern
  2782.     ENDIF
  2783.  
  2784. ;
  2785. ; pascal CursHandle GetCursor(short cursorID)
  2786. ;
  2787.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2788.         _GetCursor:    OPWORD    $A9B9
  2789.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2790.         IMPORT_CFM_FUNCTION GetCursor
  2791.     ENDIF
  2792.  
  2793. ;
  2794. ; pascal PicHandle GetPicture(short pictureID)
  2795. ;
  2796.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2797.         _GetPicture:    OPWORD    $A9BC
  2798.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2799.         IMPORT_CFM_FUNCTION GetPicture
  2800.     ENDIF
  2801.  
  2802. ;
  2803. ; pascal long DeltaPoint(Point ptA, Point ptB)
  2804. ;
  2805.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2806.         _DeltaPoint:    OPWORD    $A94F
  2807.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2808.         IMPORT_CFM_FUNCTION DeltaPoint
  2809.     ENDIF
  2810.  
  2811. ;
  2812. ; pascal void ShieldCursor(const Rect *shieldRect, Point offsetPt)
  2813. ;
  2814.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2815.         _ShieldCursor:    OPWORD    $A855
  2816.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2817.         IMPORT_CFM_FUNCTION ShieldCursor
  2818.     ENDIF
  2819.  
  2820. ;
  2821. ; pascal void ScreenRes(short *scrnHRes, short *scrnVRes)
  2822. ;
  2823.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2824.         Macro
  2825.         _ScreenRes
  2826.             move.l              (sp)+,A1
  2827.             move.w              $0102,(A1)
  2828.             move.l              (sp)+,A1
  2829.             move.w              $0104,(A1)
  2830.         EndM
  2831.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2832.         IMPORT_CFM_FUNCTION ScreenRes
  2833.     ENDIF
  2834.  
  2835.     IF OLDROUTINENAMES THEN
  2836. ;
  2837. ; pascal void DisposPixMap(PixMapHandle pm)
  2838. ;
  2839.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2840.         _DisposPixMap:    OPWORD    $AA04
  2841.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2842.         IMPORT_CFM_FUNCTION DisposPixMap
  2843.     ENDIF
  2844.  
  2845. ;
  2846. ; pascal void DisposPixPat(PixPatHandle pp)
  2847. ;
  2848.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2849.         _DisposPixPat:    OPWORD    $AA08
  2850.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2851.         IMPORT_CFM_FUNCTION DisposPixPat
  2852.     ENDIF
  2853.  
  2854. ;
  2855. ; pascal void DisposCTable(CTabHandle cTable)
  2856. ;
  2857.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2858.         _DisposCTable:    OPWORD    $AA24
  2859.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2860.         IMPORT_CFM_FUNCTION DisposCTable
  2861.     ENDIF
  2862.  
  2863. ;
  2864. ; pascal void DisposCCursor(CCrsrHandle cCrsr)
  2865. ;
  2866.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2867.         _DisposCCursor:    OPWORD    $AA26
  2868.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2869.         IMPORT_CFM_FUNCTION DisposCCursor
  2870.     ENDIF
  2871.  
  2872.     IF OLDROUTINELOCATIONS THEN
  2873. ;
  2874. ; pascal void DisposCIcon(CIconHandle theIcon)
  2875. ;
  2876.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2877.         _DisposCIcon:    OPWORD    $AA25
  2878.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2879.         IMPORT_CFM_FUNCTION DisposCIcon
  2880.     ENDIF
  2881.  
  2882.     ENDIF    ; OLDROUTINELOCATIONS
  2883. ;
  2884. ; pascal void DisposGDevice(GDHandle gdh)
  2885. ;
  2886.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2887.         _DisposGDevice:    OPWORD    $AA30
  2888.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2889.         IMPORT_CFM_FUNCTION DisposGDevice
  2890.     ENDIF
  2891.  
  2892.     IF OLDROUTINELOCATIONS THEN
  2893.     ENDIF    ; OLDROUTINELOCATIONS
  2894.     ENDIF    ; OLDROUTINENAMES
  2895. ;    From ToolUtils.i
  2896. ;
  2897.  
  2898. ;
  2899. ; pascal void PackBits(Ptr *srcPtr, Ptr *dstPtr, short srcBytes)
  2900. ;
  2901.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2902.         _PackBits:    OPWORD    $A8CF
  2903.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2904.         IMPORT_CFM_FUNCTION PackBits
  2905.     ENDIF
  2906.  
  2907. ;
  2908. ; pascal void UnpackBits(Ptr *srcPtr, Ptr *dstPtr, short dstBytes)
  2909. ;
  2910.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2911.         _UnpackBits:    OPWORD    $A8D0
  2912.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2913.         IMPORT_CFM_FUNCTION UnpackBits
  2914.     ENDIF
  2915.  
  2916. ;
  2917. ; pascal Fixed SlopeFromAngle(short angle)
  2918. ;
  2919.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2920.         _SlopeFromAngle:    OPWORD    $A8BC
  2921.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2922.         IMPORT_CFM_FUNCTION SlopeFromAngle
  2923.     ENDIF
  2924.  
  2925. ;
  2926. ; pascal short AngleFromSlope(Fixed slope)
  2927. ;
  2928.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  2929.         _AngleFromSlope:    OPWORD    $A8C4
  2930.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  2931.         IMPORT_CFM_FUNCTION AngleFromSlope
  2932.     ENDIF
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.     ENDIF ; __QUICKDRAW__ 
  2946.  
  2947.